Jump to content


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


[Resolved/HUGGIEBEAR=GOD]...pass multiple parameters from a query through...

Recommended Posts

Hey guys. My script retrieves and displays the following table without incident. However, within that table I am trying to insert a button that carries row specific
variables to another page for processing. I believe there is a problem with the syntax in the line(s) highlighted.


echo "
<td align=left> ".$row['date']."     </td>
<td align=center><b>".$row['title']." </b> </td>

[color=green]<td align=center>  <a href='get_job_details.php'?$date=".$row['date']."
            <img src='flesh/detailsbutton.jpg' alt='Details'</a></td>[/color]

<td align=center> ".$row['location']." </td>";


As you can see, I'm trying to pass the outputs of each row as parameters through a button/href that hyperlinks to "get_job_details.php".

Any help on this would be killer.

Share this post

Link to post
Share on other sites
It'd be easier to use [url=http://uk.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc]heredoc syntax[/url] for this one:

echo <<<HTML
<td align=left>{$row['date']}</td>
<td align=center>{$row['title']}</td>
<td align=center>
  <a href="get_job_details.php?date={$row['date']}&title={$row['title']}&location={$row['location']}">
  <img src="flesh/detailsbutton.jpg" alt="Details"
<td align=center>{$row['location']}</td>


Share this post

Link to post
Share on other sites


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.