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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Action Post to Multiple forms

Status
Not open for further replies.

NigeB

Technical User
Nov 29, 2000
53
GB
Is there a Sytax I can use in the

<Form Method=Post Action=formname1.php>

so I can post the results of an input form to multiple files.

Basically I want to send the results to a data processor form which will add the information to a MySQL database (I have this part of the form working) and also email the results of the input form to an email recipient. (again I have a php form which will process this.)

I have combined the php code on the same page, but if I use the processor form for editing data it keeps emailing the results as the data is processed, which can be frustrating.

I just need to post the submitted data to two forms

Any ideas?

TIA

Nigel
 
Make a new page:
--------------------
new.php
<?
include(&quot;mysql_page.php&quot;);
include(&quot;email_page.php&quot;);
?>
--------------------

Link to it instead:

<form action=&quot;new.php&quot;>

There is no simple way to do this with html. This is the easiest other way.

Rick

Merry Christmas
 
In my data processor form, I add the information to a MySQL database and I mail the data:

formname1.php:

//adding the information
$insert = mysql_query(&quot;INSERT INTO mytbl(data) VALUES ('$data');

//send email

mail($to,$subject,$body,&quot;From:…”);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top