Jump to content

Recommended Posts

Is it possible to have 2 different forms trying to perform an action at the same time?  The first form will insert information into the database, the second form would send an email stating that new data has been entered.  Will this work or am I going about it the wrong waY?

<form method="post" action="insert.php">
<form method="post" action="sendemail.php">

Thank you
Steve
Link to comment
https://forums.phpfreaks.com/topic/33368-having-2-form-methods-on-one-page/
Share on other sites

[quote author=ToonMariner link=topic=121539.msg500568#msg500568 date=1168347669]
I used one in a cms - one form 2 jobs - action one was to a script to show a preview of what page would look like and action 2 was to commit to the database.
[/quote]

That's not what he wants. He wants it to be able to have to actions simultaneously (that is at least how I read it).
Sorry didn't read his initial post (being lazy - unlike me ;) ) and yes yo0u are correct you don't need two actions for that - the script thatprocesses teh data can query the database for insert/update and then send out the e-mail - no need for two actions.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.