AdRock Posted March 25, 2009 Share Posted March 25, 2009 I have a loop which outputs a hyperlink for each email address in the database. What I don't want is the url, and at the end, the email address or md5'd email address becuase that shows in my breadcrumb Is there a way I can pass the value in the url but hidden so it's not viewable in the address bar but i can still grab it in the next page using $_GET? I thought about using a hidden input type but don't know where i would put it Any help or advice please while ($row = $result->fetch()) { $bid = number_format($row['bid'], 2); if($z % 2==0) { //this means if there is a remainder echo "<tr class='yellow'>\n"; $z++; } else { //if there isn't a remainder we will do the else echo "<tr class='white'>\n"; $z++; } echo "<td class='tdleft'><input type='checkbox' name='id[]' value='{$row['id']}' /></td>"; echo "<td class='tdEmail'>{$row['name']}</td>"; echo "<td class='tdEmail'><a href='/admin/auctions/contact-bidder/".$row['id']."'>{$row['email']}</a></td>"; echo "<td class='tdDate'>£{$bid}</td></tr>"; } Link to comment https://forums.phpfreaks.com/topic/151026-passing-hidden-value-in-url/ Share on other sites More sharing options...
Yesideez Posted March 25, 2009 Share Posted March 25, 2009 You can't hide anything in the URL unless you obfuscate it (encrypt it) so humans can't read it. Why not set up a session variable and use that? Link to comment https://forums.phpfreaks.com/topic/151026-passing-hidden-value-in-url/#findComment-793419 Share on other sites More sharing options...
thebadbad Posted March 25, 2009 Share Posted March 25, 2009 Either that, or fix your breadcrumb script. Link to comment https://forums.phpfreaks.com/topic/151026-passing-hidden-value-in-url/#findComment-793442 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.