Send formmail data to Email and Database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(newbie alert!)
DWMX, Host: PHP, MySQL, Sendmail, and my own Cgi-Bin

I had the database action working well. But then trying to get the email to work I had to switch their positions in the code. Email now on top and database on bottom. So now the database action is not activated.

How can I get the form data to post to the email and the database?


Here is some of the code:


<form action="http://www.mysite.com/cgi-sys/formmail.pl"; method="POST">
<form method="post" name="form1" action="<?php echo $editFormAction; ?>">
<table align="center">
<tr valign="baseline">
<td nowrap align="right">First Name</td>
<td><input type="text" name="FIRST_NAME" value="Enter your first name" size="32">
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Last Name</td>
<td><input type="text" name="LAST_NAME" value="Enter your last name" size="32">
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">&nbsp;</td>
<td><input type="submit" value="Insert Record">
</td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1" />
<input type="hidden" name="recipient" value="animals" />
</form>





howard grämer New York City hagdb@xxxxxxxxxxx

_________________________________________________________________
Need a shot of Hank Williams or Patsy Cline? The classic country stars are always singing on MSN Radio Plus. Try one month free! http://join.msn.com/?page=offers/premiumradio


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux