Basically I have a setup like this :
<body>
<div id="header">
<h3> Header </h3>
</div>
<div id="body">
</div>
<div id="foot">
</div>
The idea here is to guide the user through a six step wizard of filling in data to calculate a value.
Each step is getting loaded into the <div id="body"> the first step gets load in through jQuery, and the steps after that get loaded in through a JavaScript function.
The steps are called : step01.php, step02.php etc...
now my question is : when I load from step01.php to step02.php in the <div id="body">
is that seen as a page reload? Because I want to save the variables which are filled in in step01.php into a session, or into a other .php file. But since php is serverside I wanted to know if a file reload in the div is seen as a full page reload?
If this is not possible without a full page reload, please suggest anything else... I've read some documentation about AJAX but it still seems very vague to me. So if anyone has a "newbie-tutorial" please suggest.
At this moment I'm saving the variables in a JavaScript file, the make cookies out of it, and then extract the variables out of the cookies using php. But I know there is an easier way.
Yes, it is considered a "page load" to your server side php scripts. Anything you put in the session will be there for the next reload of the div.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With