Pi_Mastuh Posted August 30, 2006 Share Posted August 30, 2006 I have a page displaying a bunch of items. When you click on one, it takes you to another page with info about the item. I need to make it send the data of the item to the new page but i can't get it to work. Here's the code for the new page:[code]<?session_start();$session=session_id( );include ("secure/config4.php"); $image = str_replace(" ", "", $itemName); $spacedname = str_replace(" ", " ", $itemName);?><html><head><title><? print $itemName; ?></title></head><body><BR><table width="227" border="0" cellspacing="0" cellpadding="0" height="104" style="border-collapse: collapse" bordercolor="#111111"> <tr> <td height="104" valign="top" width="227" bordercolorlight="#000080"> <table width="200" border="1" cellspacing="0" cellpadding="0" bgcolor="#6699FF" bordercolor="#000066"> <tr> <td align=center> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr align=center bgcolor="blue"> <td align=center bgcolor="blue"> <div align="center"><font face=Arial, Helvetica, sans-serif size=3 color="blue"><b> <? print "$spacedname"; ?> </b></font></div> </td> </tr> <tr bgcolor="#FFFFFF" align="center"> <img src="../images/items/<?echo$image;?>.jpg"> <br> </tr> </table> </td> </tr> </table><BR> <table width="205" border="1" cellspacing="0" cellpadding="0" bordercolor="#000099"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"> <tr bgcolor="#FFCCFF"> <td height="20" colspan="2" bgcolor="#0000FF" bordercolor="navy"><div align="center"> <font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"><b>Item Info:</b></font></div></td> </tr> <tr> <td width="99" height="10" bordercolor="navy"><font face="Arial, Helvetica, sans-serif" size="1"> Type:</font></td> <td width="101" height="10" bordercolor="navy"><font face="Arial, Helvetica, sans-serif" size="1"><? print "$type"; ?></font></td> </tr> <tr> <td height="19" bordercolor="navy"><font face="Arial, Helvetica, sans-serif" size="1">Use on:</font></td> <td height="19" bordercolor="navy"><font face="Arial, Helvetica, sans-serif" size="1"> </font> </tr> </table></td> </tr> </table><br> </td> </table> </html>[/code]it doesn't work though. None of the data is being sent to this page. Quote Link to comment Share on other sites More sharing options...
redarrow Posted August 30, 2006 Share Posted August 30, 2006 all varables from the other page has to be sessions are they set? Quote Link to comment Share on other sites More sharing options...
Pi_Mastuh Posted August 30, 2006 Author Share Posted August 30, 2006 I've got this...[code]<form action=../reg/secure/itemdetails.php method=post><input type=hidden name=$itemName value=$itemName><input type=image src=../images/details.jpg></FORM><br>[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.