Jump to content

use hyperlink to edit save


jkkenzie

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.