more things with one submit

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
sebs
Forum Commoner
Posts: 97
Joined: Tue Sep 20, 2005 10:13 am

more things with one submit

Post 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.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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 ! :P
ruchit
Forum Commoner
Posts: 53
Joined: Mon Sep 26, 2005 6:03 am

Post 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.
Post Reply