Jump to content

passing hidden value in url


AdRock

Recommended Posts

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

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.