Jump to content

help with form submiting


tenfoottrike

Recommended Posts

There is no such limit.

 

You would need to be way more specific about what problem you are having and the code you are using.

ok well i have a simple php form submit code but when it submits to the mysql database it stops a mail and mail ond on donot submit to the database

 

here is my code

 

if($_POST['submit']{
	$comname = $_POST['comname'];
	$fname = $_POST['fname'];
	$lname = $_POST['lname'];
	$phone = $_POST['phone'];
	$email  = $_post['email'];
	$add = $_post['add'];
	$city = $_post['city'];
	$state = $_post['state'];
	$zip = $_post['zip'];
	$stuf = $_post['stuf'];

	$conn = @mysql_connect("localhost","user","pass") or die('Error: ' . mysql_error());
	$sql = "INSERT INTO `database`.`table` (`ID`, `comname`, `fname`, `lname`, `phone`, `email`, `add`, `city`, `state`, `zip`, `stuf`)VALUES (NULL, '$comname', '$fname', '$lname', '$phone ', '$email', '$add', '$city', '$state', '$zip', '$stuf');";
	mysql_query($sql) or die('Error: ' . mysql_error());
	echo "Info submited: ".$comname." ".$fname." ".$lname." ".$phone." ".$email." ".$add." ".$city." ".$state." ".$zip." ".$stuf.
	mysql_close();

else{
	die("fourm was not filled out right");
}
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.