PDA

Click to See Complete Forum and Search --> : Simple Simple Simple


flame_211
Aug 10th, 2002, 11:52 AM
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=blah&txtbox2=blahblah)
(blah being the stuff I inserted into the text boxes.)
Can some one help me with this?

nabeels786
Aug 10th, 2002, 12:20 PM
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

:)

flame_211
Aug 10th, 2002, 12:24 PM
K thanks, Ill try that

flame_211
Aug 10th, 2002, 12:44 PM
It still aint working.....
Heres what I got, Can you change it to work a lil for me?
first page:


<?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
$_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.

flame_211
Aug 10th, 2002, 12:47 PM
Opps.... Posted again :P