I'm having trouble making what should be a simple update form:
Code: Select all
echo "<form action='editcontact.php' method='POST'>";
echo "<input type='hidden' name='id' value= '$editrow["c_id"]'>;
echo "<input type='text' name='name' size='20' value='$editrow["c_forename"]'>;
echo "<input type='text' name='address' size='40' value='$editrow["c_surname"]'>;
echo "<input type='submit' name='submit' value='submit'>";
echo "</form>";
All of the strings within the $editrow array work fine when I echo them normally, but when I try and output them in this form, it all goes wrong!
Any pointers as to why the above code might not work? Any help would be gratefully received.
For future reference, please use the BBcode tags to enclose any code you post, as I have done for you, above.