Html:
<form method="post" action="create.php">
Job #: <input type="text" name="jobnum">
<br>
Program: <input type="text" name="program"><br />
Ship Date: <input type="text" name="shipdate"><br />
Description: <input type="text" style="height:100px; width:85%" name="description"><br /><br />
Proto Verified By: <input type="text" name="name"><br /><br />
Additional Notes: <input type="text" style="height:100px; width:85%" name="notes"><br />
<input type="submit" name="value" value="submit" />
</form>
php:
$savedata = $_REQUEST['savedata'];
if ($savedata == 1){
$data = $_POST['jobnum'] . "\r\n";
$data .= $_POST['program'] . "\r\n";
$data .= $_POST['description'] . "\r\n";
$data .= $_POST['name'] . "\r\n";
$data .= $_POST['notes'] . "\r\n";
$file = "YOURDATAFILE.txt";
$fp = fopen($file, "a") or die("Couldn't open $file for writing!");
fwrite($fp, $data) or die("Couldn't write values to file!");
fclose($fp);
echo "Your Form has been Submitted!";
}
I am not sure why my php will not post my form. My submit goes the the php page but it is completely blank. I am kind of new to code so I may need some detailed response...
nameattribute.