Page is a not externally linkable
MC_SAS_Master - 5:58 pm on Jan 3, 2007 (gmt 0)
I want there to be a "confirmation page" so that users can double check the responses before submitting them to the database. This would combat duplicate entries caused by misspellings and user error. Anyone have any ideas how to do this? Below is example code from my files: --- HTML Code --- <html> --- PHP File ---
I'm hoping someone here can help me because I am at a complete loss how to get this "idea" of mine to work. I've created a form that takes inputs from users and inserts them into a MYSQL database. So far, I've been able to get the form to connect to the MYSQL db via PHP but ran into a problem with users using their browser's back button.
<head>
<title>Report</title>
</head>
<form action="input.php" method="post">
<h1 align="center"> Report Form</h1><br /><br />
<b>Site:</b>
<form>
<select name="sites">
<option value="First">1st Street </option>
<option value="Baltimore">Baltimore</option>
<option value="UnionStation">Union Station</option>
</select><br />
<b>Department:</b>
<form>
<select name="dept">
<option value="Front">Front Office</option>
<option value="Acct">Accounting</option>
<option value="Corporate">Corporate</option>
</select><br />
<b>Location of Incident:</b>
<form> <input type="text" name="location">
</select><br />
<input type="submit" value="Submit" />
<input type="reset" value="Clear Form" />
</form>
</div>
</body>
</html>
<?php
echo '<br />';
echo 'Site: <b>'.$_POST['sites'].'</b><br />';
echo 'Department: <b>'.$_POST['dept'].'</b><br />';
echo 'Location of wreck: <b>' .$_POST['location'].'</b><br />';?>