ridiculous Posted October 11, 2006 Share Posted October 11, 2006 Generally:I have a table of several columns and I want to take a unique piece of data from each row and pass it into another php function for processing. I am trying to keep this data hidden to the viewer. Specifically:My objective is to insert a button into each row of my table below, and pass a variable I call $postid to the file get_job_details.php for processing. I have a feeling the area I have highlighted is wrong in some way, because I am not able to pass the variable to my display function. <code>echo " <td align=left> ".$row['date']." </td> <td align=center><b>".$row['title']." </b> </td> [color=blue]<td align=center> <a href='get_job_details.php'?postid='postid'> <img src='flesh/detailsbutton.jpg' alt='Details'</a></td>[/color] <td align=center> ".$row['location']." </td>"; echo "</tr>";M</code> Link to comment https://forums.phpfreaks.com/topic/23686-resolved-thxpassing-variable-from-table-through-button-into-function/ Share on other sites More sharing options...
ridiculous Posted October 11, 2006 Author Share Posted October 11, 2006 please help! Link to comment https://forums.phpfreaks.com/topic/23686-resolved-thxpassing-variable-from-table-through-button-into-function/#findComment-107515 Share on other sites More sharing options...
ridiculous Posted October 11, 2006 Author Share Posted October 11, 2006 bump Link to comment https://forums.phpfreaks.com/topic/23686-resolved-thxpassing-variable-from-table-through-button-into-function/#findComment-107530 Share on other sites More sharing options...
mainewoods Posted October 11, 2006 Share Posted October 11, 2006 [code]<td align=center> <a href='get_job_details.php'?postid='postid'> <img src='flesh/detailsbutton.jpg' alt='Details'[/url]</td>[/code]problems:--img tag not terminated with >--no link terminating tag /a--postid should be php variable(needs dollar sign)[code]<a href='get_job_details.php'?postid='$postid'>[/code]the $postid variable would have to be set above by you Link to comment https://forums.phpfreaks.com/topic/23686-resolved-thxpassing-variable-from-table-through-button-into-function/#findComment-107589 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.