Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing array through url

Status
Not open for further replies.

sophielois

Technical User
Sep 8, 2005
66
GB
Is it possible to pass an array through a url?

I cant get it to work...

this is what im doing
Code:
<?
$units = $_POST['cb']; /* array which chosen units are stored */
?>
<?
			echo "<td colspan='2'><font face='Verdana, Arial, Helvetica, sans-serif'><b>Personal Details</b> &nbsp;&nbsp;&nbsp;- <a href='/admin/editpersonal.php?userid=$userid&units=$units'>Edit Personal Details</a></font></td>";
?>


At the mo this is not working, when i display $units it prints Array

Never tried to do this before so unsure if it is even possible.

Sophx
 
thanks for the explanation DRJ478

Ive decided to use sessions and everything is as it should be

Sophx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top