making a submit button perform two things at once?

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
phpnewbie1985
Forum Commoner
Posts: 33
Joined: Thu Jan 08, 2004 6:15 am

making a submit button perform two things at once?

Post by phpnewbie1985 »

Is it possible to make the click event of a submit button do two things at once? eg when a user fills in a form it sends us an e-mail and sends them a confirmation email? is this possible by putting a comma inbetween two pages eg...

<form method="POST" action="confirmation.php,email.php">

then on those two pages have two functions which get performed?

if this is possible could someone explain how this could be done?

Many thanks
Chris
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

No, you can only submit a form to one page. Why don't put both functionalities in one page?
Post Reply