0.3.1 - order - telephone field

rocky

No avatar

2005-07-28 13:33

I installed this version but when i fill in all the fields (it still has problems with cell phone numbers) it keeps sending me back to the fill in form.
What's the problem?

treewood (OpenSolution)

Avatar: treewood

2005-07-28 13:41

rocky - telephone can have -, +, (, ) and 0123456789

witaj.net

Kevin

No avatar

2005-08-04 03:29

open the file js/checkForm.js adn goto lin 40 and change

poprawnyTelefon = /^[0-9() -+]{7,}$/i;

to

poprawnyTelefon = /^[+]?((\([0-9]+\)[ ]?)|([0-9]+[ \/+-]?)){6,}$/i;

Open the file core/other.php and goto lin 93 and change

if( eregi( "^[0-9() -+]{7,}$", $sTel ) )

to

if( eregi( "^[+]?((\([0-9]+\)[ ]?)|([0-9]+[ /+-]?)){6,}$", $sTel ) )

This worked for me because now it can deal with - and +

Kevin

Search!!

No avatar

2005-08-04 17:08

...

Back to top
about us | contact