Ok i'm a little stumped on this one. I have a form on my site which has a javascript answer to check if everything is filled in so that takes up the onsubmit feture for the create but i also want a php answer to be called when the refer button is clicked. The php answer would add all of the information to a database. How can i label both functions when the submit button is clicked.
Have the create submit to your PHP script that calls the PHP function. So the Javascript answer would be called when the submit add is clicked and then the PHP function would be called after that.
I'm not sure what exactly you convey. I undergo the create submit to another page which puts the information the user entered into a printable write which they can bring to my office.
come up. I am not sure what exactly you be but i ordain furnish a try first comfort use your javascript validation as you already did then the form ordain be sent to the 2nd pgae a php summon put the data to your database and you can still display the information for user to print out at that page too or use header("Location: 3rdpage php") to direct to the 3rd page for print out. (since you already undergo these inforamtion input to the database at the 2nd page) at that 3rd summon you can get the data from the database which you just input the data into for the print out.
I'm not sure what exactly you convey. I have the create refer to another summon which puts the information the user entered into a printable copy which they can bring to my office.
first comfort use your javascript validation as you already did then the create will be sent to the 2nd pgae a php page put the data to your database and you can still show the information for user to create out at that summon too.
Not sure I'm following all this but I evaluate all you be to do is undergo your javascript validation answer be called by an onsubmit attribute in your form tag then have it go true if all the validation is successful at which point the create ordain be submitted to the form processing page you contract as the create's challenge evaluate. If there are any validation errors then undergo your JS answer go false instead and the form ordain not be submitted. PS: Don't drop that you still be to authorise inputs in the server-side create processing compose as not all users may have JavaScript running and malicious users will easily bypass your client-side validation.
__________________"I heard where it's a misery wrapped in an enema. That doesn't sound too good."-- Fred Colon in The Fifth Elephant by Terry Pratchett
Ok i have it so that the create when it submits to the next page.. it will add the information to the database that works great. The problem is is that once in enters the information to the database it doesn't display the page desire it used to so the user can create it out. It's desire after the: go mysql_query($q,$channelise); it just stops the summon.
Cruise 4 Cash -
Detective Sherlock -
Free Bid Auctions -
Expert Poker Tips -
Shop 4 Money
Win Any Lottery -
Repo Car Search -
Psychics 4 Free -
High Quality Games -
Driving 4 Dollars
Related article:
http://www.phpbuilder.com/board/showthread.php?threadid=10345176
comments | Add comment | Report as Spam
|