Lambneck Posted April 25, 2008 Share Posted April 25, 2008 Hello, How can I make it so once a user submits a form a message comes up saying something like "thank you, your form was submitted"? $_SESSION['form_id'] = 1; while (list($key, $value) = each($_POST)) $_SESSION[$key] = addslashes($value); $submission_id = process_form($_SESSION, $_FILES); Link to comment https://forums.phpfreaks.com/topic/102969-solved-form-submission-response/ Share on other sites More sharing options...
teng84 Posted April 25, 2008 Share Posted April 25, 2008 you have to create a landing page and have a condition like if (success condition here){ echo 'submitted'; } Link to comment https://forums.phpfreaks.com/topic/102969-solved-form-submission-response/#findComment-527480 Share on other sites More sharing options...
Fadion Posted April 26, 2008 Share Posted April 26, 2008 A simple form with as well a simple php script: <?php if(isset($_POST['name'])){ //check if the post has been submitted $name = $_POST['name']; echo 'Thank You ' . $name . "! Your form was was submitted'; } ?> <form id="myForm" name="myForm" method="post" action="mypage.php"> <input type="text" name="name" /> <input type="submit" name="Submit" value="Submit" /> </form> Link to comment https://forums.phpfreaks.com/topic/102969-solved-form-submission-response/#findComment-527547 Share on other sites More sharing options...
phpSensei Posted April 26, 2008 Share Posted April 26, 2008 A simple form with as well a simple php script: <?php if(isset($_POST['name'])){ //check if the post has been submitted $name = $_POST['name']; echo 'Thank You ' . $name . "! Your form was was submitted'; } ?> <form id="myForm" name="myForm" method="post" action="mypage.php"> <input type="text" name="name" /> <input type="submit" name="Submit" value="Submit" /> </form> should be <?php if(isset($_POST['name'])){ //check if the post has been submitted $name = $_POST['name']; echo 'Thank You ' . $name . "! Your form was was submitted"; } ?> <form id="myForm" name="myForm" method="post" action="mypage.php"> <input type="text" name="name" /> <input type="submit" name="Submit" value="Submit" /> </form> Link to comment https://forums.phpfreaks.com/topic/102969-solved-form-submission-response/#findComment-527550 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.