it does,
another question though is i have a form w. multiple variables its
actually a multiple page form and what i was wondering is if there is
away other than just setting up a $_SESSION['variablename'] for each
variable is there a way to have it save itself so that i can call at
the end of the form
yea but i have a lot of variables in a multiple page form do i have to
set it up like that for every variable or can it be automated and then
called at the end?
I guess you could do something like the following. On your html page
with all of the forms you could make the name attribute to a number
starting from 0 and going up. Here is an example of what I mean.
--------------[ HTML File ] -----------------------------
<!----Messy HTML Code. Example only.--->
<html>
<head><title>Te st Page</title></head>
<body>
<b>Enter your name: </b><input type="text" name="0">
<b>Enter your phone: </b><input type="text" name="1">
<form action="file.ph p" method="post">
<input type="submit" value="Submit"> </form>
</body></html>
The above code should work. If it dosen't then it's because $m dosen't
need to be in the '. This code is only to give you an example of what I
mean. :)
Quinonez wrote:[color=blue]
> yea but i have a lot of variables in a multiple page form do i have to
> set it up like that for every variable or can it be automated and then
> called at the end?[/color]
--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
Quinonez wrote:[color=blue]
> "==== page2.php
> $_SESSION['page2'] = $_POST;
> echo $_SESSION['page1']['name'];"
>
> what am i supposed to put in where it says ['name']? where do i get
> that from?[/color]
--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
Pedro Graca said...[color=blue]
> Quinonez wrote:[color=green]
> > "==== page2.php
> > $_SESSION['page2'] = $_POST;
> > echo $_SESSION['page1']['name'];"
> >
> > what am i supposed to put in where it says ['name']? where do i get
> > that from?[/color]
>
> Try
>
> ==== page2.php
> echo '<pre>'; print_r($_SESSI ON['page1']); echo '</pre>';[/color]
Comment