Jump to content

How to pass a Variable(consist of a value) to another page and display


tharangasp

Recommended Posts

Dear Experts,

 

I have 2 Pages  : -  1st one is call  - newarrivels.php   

                            2nd one is call - Order.php

 

I already printing the values to a table from a database on this page(1st page).

I want to get those variables to "2nd Page"..Please help Me.

 

This is the Printing Code for page 1 (newarrivels.php)

 

 

echo "<td class=\"tableborder\" hight=\"50\" align=\"left\"><a id=\"qm\" class=\"qmmc\" <img src=\"$item_thumbnail\"
<td class=\"tableborder\" hight=\"50\" align=\"justify\"><a id=\"qm14\" class=\"qmmc\" 
<font color=\"#FFFFF\" size=\"3\" face=\"Verdana\"><strong> $item_name </strong></font> <br> <br> 
<font color=\"\" size=\"2\" face=\"Verdana\" >$item_description</font></a>  <br> <br> <br> <br> <br> <br> <br> 
<font color=\"#FFFFFF\" size=\"2\" face=\"Verdana\"><em> $item_price USD</em> </font> <br> <br> 
<font color=\"#FFFFFF\" size=\"2\" face=\"Verdana\" align=\"right\" ><a href=\"order.php\"><u><strong> $OrderNow </strong> </u> </a></font>";

 

This code is working 100% and the values $item_name | $item_price | $item_description is Printing Successfully.

 

EG : Result of this page : Item name: printer  item_description:Hp deskjet | item_price : 70 USD

 

 

I want to take these values to my second page "Order.php"

please help me.... :D 

Note - there are no Text boxes in newarrivels.php and order.php

 

thankssssssss

 

 

 

 

 

 

 

 

why not just run the same query on the second page? or create an include that does it, and include it on both...

 

not sure if i understand 100%... but if you want to just pass values of one record to the page, pass the item id, and query the database according to that id...

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.