Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submit form

Status
Not open for further replies.

KryptoS

Programmer
Feb 7, 2001
240
BE
Hey,

Can I submit a form without leaving the page I'm on?

So I have a form, a push on the submit button, I go to a javascript (or something else) and the script will submit the form but I'm staying on the same page.

index.php
<form name="form1" method="post" action="join.php"></form>

I have to stay on the index.php.


Is there a way to do this?

The One And Only KryptoS
 
yes you can do this by traping the sbmitbutton with onsubmit()="jsprocname and in jsprocname issue a call to the submit method and return false so the original click doesn't happen.
IF you need more help your best bet is to go over to the javascript forum as this isn't directly a php problem
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top