iframe,session

form posts
text box
and
submit button

and save the textbox input to a session
LVL 1
rgb192Asked:
Who is Participating?
 
Chris StanyonConnect With a Mentor Commented:
session_start();
$_SESSION['myValue'] = $_POST['myTextBox'];


0
 
cloud-9Connect With a Mentor Commented:
Using session variables in iframes is no different than in normal page, since PHP doesn't know and doesn't care that that page is in an iframe since it is server side language. PHP treats all requests from an iframe exactly the same as it would a normal page.
0
 
dukeofgamingCommented:
As they said
0
 
gamebitsConnect With a Mentor Commented:
If you are planning to use the session inside or outside of the iframe you have to make sure sure that every page will have

session_start(); at the top of the page to be able to use the sessions.
0
 
rgb192Author Commented:
thanks
0
All Courses

From novice to tech pro — start learning today.