nil
07-20-2003, 10:09 AM
Hello and thank you for providing a great forum. I have an issue re: submitting a form that i need help with.
I have an HTML form that currently writes to a MySQL db using when the user hits 'Submit'. The PHP code looks like so:
if (isset($_REQUEST['submit']))
{
mysql_connect('localhost','username','userpass');
mysql_select_db('db_name');
mysql_query("INSERT INTO table_name(field1, field2) VALUES ('" .
$_REQUEST['firstname'] ."','" . $_REQUEST['lastname'] . "')");
this functionality works fine. is there a way to also email the form to several people when the user 'Submits'?
Any help is aprecciated. Thanks in advance.
I have an HTML form that currently writes to a MySQL db using when the user hits 'Submit'. The PHP code looks like so:
if (isset($_REQUEST['submit']))
{
mysql_connect('localhost','username','userpass');
mysql_select_db('db_name');
mysql_query("INSERT INTO table_name(field1, field2) VALUES ('" .
$_REQUEST['firstname'] ."','" . $_REQUEST['lastname'] . "')");
this functionality works fine. is there a way to also email the form to several people when the user 'Submits'?
Any help is aprecciated. Thanks in advance.