-
Simple Simple Simple
Alright, I am extremely new to php. I am what you would call a newbie to it :P, anyways.
Heres the setup:
I have two input forms on a page.
I want to take that information(thats inserted in them)
And transfer it to the next page, and insert it into that codeing.
I dont need it to stay,
I just need it to transfer it,
Like, in the link or something,
(ie, http://localhost/index.php?txtbox1=b...tbox2=blahblah)
(blah being the stuff I inserted into the text boxes.)
Can some one help me with this?
-
you set the method="post" or "get", get will give you the query string you want.
and set action= to the page you want
<form action="nextpage" method="get">
and on the next page, if you used post:
$_POST['nameofvariable']
or if you used get
$_GET['nameofvariable']
i think, i use global vars so yeah
:)
-
-
It still aint working.....
Heres what I got, Can you change it to work a lil for me?
first page:
PHP Code:
<?php
echo '
<form action="next.php" method="post">
<input type="text" name="user" maxlength="20" size="24" value="' . $user . '">
<INPUT TYPE=SUBMIT VALUE=Next></FORM>
'
?>
Second page:
PHP Code:
<?php
$_POST['user']
echo '
<FORM ACTION="http://www.alien-adopt.com/cgi-bin/view.fcgi?" METHOD="POST">
<INPUT TYPE=HIDDEN NAME=email VALUE=' . $user . '>
<INPUT TYPE=HIDDEN NAME=pass VALUE=cookie><INPUT TYPE=HIDDEN NAME=step VALUE=bankt2>
<INPUT TYPE=HIDDEN NAME=other VALUE=180400>
<INPUT NAME=cash type=hidden SIZE=6 VALUE=1567652>
<INPUT TYPE=SUBMIT VALUE="Do it!">
</FORM>
'
?>
I only have one text on there right now.
-