skeener Posted February 6, 2007 Share Posted February 6, 2007 hi there, i know how to pass a value to another page, but i can't pass a value to a php page which is in a htm frameset. http://localhost/food_type/myindex.htm?foodNo=54 the php page that suppose to use the $_GET function is eat.php , but that page is residing in myindex.htm . I can pass the value successfully if the url is : http://localhost/food_type/eat.php?foodNo=54 How can i pass the value if it is in a frameset. please help thx in advance Quote Link to comment Share on other sites More sharing options...
only one Posted February 6, 2007 Share Posted February 6, 2007 use session_start(); function inside your framed page Quote Link to comment Share on other sites More sharing options...
cuteNephilim Posted February 6, 2007 Share Posted February 6, 2007 You can pass the value directly to eat.php (inside the frameset) by setting the target frame name in your link. Name the frame in the frameset something like this: <frame name="eatframe" src="eat.php"> then set the target in your link like this: <a href="eat.php?foodNo=54" target="eatframe">Food number 54</a> and eat.php in your frameset should get the value... 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.