Ok thanks, I think I am having trouble knowing where to put the next statements the form is calling.
For example. I assume I put them right after the form in the print statement, within the same bracket?
while ($row = mysql_fetch_array($result))
{
print "<form action='<?=echo $_SERVER['PHP_SELF']?>' method='post'>
<input style='margin-left:0px; margin-top:4px' type='text' name='anemailadress' size=15>
<input type='submit' name='submit' value='Submitting' /></form>"; //adding the new fields it is sending to here.
$mailto = 'anemailaddress' ;//Email where the form fields will be sent.
mail($mailto, etc. and so on.;}}";
echo 'the php self needs to work';
?>
Please let me know, I think I am putting the properties that send to an email, that the form should post to, in the wrong place. Or I have the double closing quotation marks for the print statement in the wrong place. Thank you.