How to submit the data although it return false?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
smartic
Forum Newbie
Posts: 3
Joined: Thu Jul 19, 2007 5:37 am

How to submit the data although it return false?

Post by smartic »

im having two problem with my site, i wrote Javascript code into my page to return true if the data that was entered was correct else return false and im having two buttons to submit the data
EX:
Image
this button to check for availability and the other to check that all data are correct to insert into it database in the same form.
EX:
Image
The other problem, i want to login in the same page im already on and make the form disappear when i enter the correct data how to do that
EX:
Image :x [/img]
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I'd definitely do that server-side, since users who do not have JavaScript (or have it disabled) won't be able to sign up.
Post Reply