| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Register form post code validation script & possible password script | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I've got another problem.
I have been asked to do some form validation on our site but the script I am using just refuses to work. What I have done is, put the following javascript code into '/customer/home.tpl' HTML Code:
I have as you can see I have changed the form object model variables to co align with the form. I then added this in on the actual register form for customers '/customer/main/register.tpl ': HTML Code:
But it keeps coming up with this error in FF v3: Error: missing } in XML expression Source File: http://mydomain.com/register.php? Line: 24, Column: 1 Source Code: test = test.toUpperCase(); //Change to uppercase It works in normal html as such, with the following criteria for a successfull postcode validation script:
Thanks ever so much, Jeremy.
__________________
Version 4.1.11 on Linux (Fedora) X-Cart Gold |
|||||||
#2
|
|||||||
|
|||||||
![]() Its working sort of.
The alerts working when you go into put a deliberate incorrect format postcode like purely JH but its still allowing it through, here's the 2 tpl files I have used to make it work kind of: File: /customer/home.tpl HTML Code:
File: /customer/main/register.tpl HTML Code:
Any suggestions? Regards, Jeremy
__________________
Version 4.1.11 on Linux (Fedora) X-Cart Gold |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|