Jump to content

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


ridiculous

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.









-------------------------------------------------------------------------------
<code>

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']."
&$title=".$row['title']."&$location=".$row['location'].">
            <img src='flesh/detailsbutton.jpg' alt='Details'</a></td>[/color]

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

</code>
--------------------------------------------------------------------------

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.
Link to comment
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:

[code]<?php
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"
  </a>
</td>
<td align=center>{$row['location']}</td>
HTML;
?>[/code]

Regards
Huggie
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.