-
Aug 10th, 2002, 11:52 AM
#1
Thread Starter
Hyperactive Member
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?
Reach me at:
AIM: FlameWide
AIM: Itz deep6
MSN/Email: flame_gandalf@hotmail.com
Check out these sites:
My Blog
-
Aug 10th, 2002, 12:20 PM
#2
Fanatic Member
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
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Aug 10th, 2002, 12:24 PM
#3
Thread Starter
Hyperactive Member
Reach me at:
AIM: FlameWide
AIM: Itz deep6
MSN/Email: flame_gandalf@hotmail.com
Check out these sites:
My Blog
-
Aug 10th, 2002, 12:44 PM
#4
Thread Starter
Hyperactive Member
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.
Reach me at:
AIM: FlameWide
AIM: Itz deep6
MSN/Email: flame_gandalf@hotmail.com
Check out these sites:
My Blog
-
Aug 10th, 2002, 12:47 PM
#5
Thread Starter
Hyperactive Member
Reach me at:
AIM: FlameWide
AIM: Itz deep6
MSN/Email: flame_gandalf@hotmail.com
Check out these sites:
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|