jkkenzie Posted April 7, 2008 Share Posted April 7, 2008 i have gotten the reords to display on my page and they are hyperlinks but i dont know how to go about when someone clicks it so as to edit. I also have a form with input boxes on the same page. What i need is when a record is clicked on the page, the details go to input boxes on my form. thanks in advance Regards, JKM Link to comment https://forums.phpfreaks.com/topic/99947-use-hyperlink-to-edit-save/ Share on other sites More sharing options...
cooldude832 Posted April 7, 2008 Share Posted April 7, 2008 the form simply needs to be submitted either via post/get which can be accomplished via a submit button or a javascript action that says onclick submit a form. Link to comment https://forums.phpfreaks.com/topic/99947-use-hyperlink-to-edit-save/#findComment-511101 Share on other sites More sharing options...
jkkenzie Posted April 8, 2008 Author Share Posted April 8, 2008 What you say is what i will perform after you help me first get my data to the form, the below code collects data from my database and echo them as hyper links(which i cannot post if that is what you mean), i want when i click a record(hyperlink), to use 'if(isset($_POST['save2']))" and get data put on the form that will post(which i can do) for saving in database. while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "<tr bgcolor='F6F6F6' class='normal'>"; foreach ($row as $value) { echo "<td class='table'><a href='?edit=".$value."&val='ASC''>".$value ."</a></td>"; } echo "</tr>"; } $end = $start + $records; I hope that gets the point home. Thanks again, Joe Link to comment https://forums.phpfreaks.com/topic/99947-use-hyperlink-to-edit-save/#findComment-511793 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.