Results 1 to 5 of 5

Thread: Simple Simple Simple

  1. #1

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393

    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

  2. #2
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    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?

  3. #3

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393
    K thanks, Ill try that
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: flame_gandalf@hotmail.com

    Check out these sites:
    My Blog

  4. #4

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393
    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

  5. #5

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393
    Opps.... Posted again :P
    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
  •  



Click Here to Expand Forum to Full Width