Ok I have a very basic form setup as follows:
<!-- input for change job -->
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<p>Type your job Name here:<br />
<textarea name="jobname" rows="1" cols="40" wrap>
</textarea><br />
<p>Type your job type here:<br />
<textarea name="jobtype" rows="1" cols="40" wrap>
</textarea><br />
<p>Type your job description here:<br />
<textarea name="jobdesc" rows="10" cols="40" wrap>
</textarea><br />
<p>Type your job date here:<br />
<textarea name="jobdate" rows="1" cols="40" wrap>
</textarea><br />
<p>Type your job address here:<br />
<textarea name="jobadd" rows="5" cols="40" wrap>
</textarea><br />
<input type="submit" name="submitjob" value="SUBMIT" />
</p>
</form>
Basically all I want to do is do a MySQL query for the jobname, jobdate etc and use the information from the database as the text for the form (for records that need updating it will show them what is there and they can just edit it as they please). I have tried this for a bit but can't get it right. Should I be using PHP inside the HTML form or somehow set the variables up before I enter the form?