tenfoottrike Posted March 12, 2010 Share Posted March 12, 2010 ok im still new to php i have a form im trying to pass more then 4 variables to my mysql i was just wondering. is there away to get around the 4 $_post cap ? Quote Link to comment https://forums.phpfreaks.com/topic/195047-help-with-form-submiting/ Share on other sites More sharing options...
PFMaBiSmAd Posted March 12, 2010 Share Posted March 12, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/195047-help-with-form-submiting/#findComment-1025318 Share on other sites More sharing options...
tenfoottrike Posted March 12, 2010 Author Share Posted March 12, 2010 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"); } } ?> Quote Link to comment https://forums.phpfreaks.com/topic/195047-help-with-form-submiting/#findComment-1025321 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.