Forum Moderators: coopster
While viewing this record, I want to "click to edit record" and have the script select the current ID and direct to my edit page (show_modcontact.php)
Can you provide me the scirpt? Thanks much, I'm new at this :)
[edited by: eelixduppy at 11:46 pm (utc) on Feb. 27, 2008]
[edit reason] exemplified [/edit]
Does the show_modcontact.php expect the ID to be passed in the URL (GET) or through a form (POST)?
If URL (GET), add code like this to your show_contact.php script:
echo '<p><a href="/database/show_modcontact.php?id='.intval($_GET['id']).'">click to edit</a></p>';
If a form (POST), add code like this to your show_contact.php script:
echo '<form action="/database/show_modcontact.php" method="post">
<input type="hidden" name="id" value="'.intval($_GET['id']).'" />
<input type="submit" value="click to edit" />
</form>';