Page 1 of 1
more things with one submit
Posted: Wed Sep 28, 2005 5:13 am
by sebs
Can I do more than one action on a submit form?I mean on the same button I want to open a new page and to send an email confirmation.How.
And how can I make a program that sends an email from a text that users enter?Thanks.
Posted: Wed Sep 28, 2005 5:40 am
by Jenk
You can use the onClick property to add extra functionality.
For the email question, search the net or these forums for php email.. it must be the most frequently asked question about php on the net !

Posted: Wed Sep 28, 2005 5:55 am
by ruchit
there are 2 alternatives.... u can either put the mailing script in the page to which the page is getting submitted, alternatively... onSubmit of the form you can call a javascript function that opens up a pop-up window... and pass the value of the fields to this pop-up as query string.