Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Form HELP! +rep

  1. #1
    Join Date
    Jan 2007
    Posts
    790
    Tokens
    3,429

    Latest Awards:

    Default Form HELP! +rep

    Hi, do you know how i can make a Radio Button, where you check the box, click submit, and take you to a page of the product you selected?

    +rep to whom would give the script to me.

    Edited by Lµke (Forum Moderator): Thread Moved From Website Designing. Please post in the correct section next time, Thanks .
    Last edited by Lµke; 17-02-2007 at 06:15 PM.

  2. #2

    Default

    anywho i dont get this, what do you want, i cannot understand im three qaurters brazillian,

  3. #3
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Radio Buttons Form example

    Code:
    <FORM METHOD=post ACTION="/cgi-bin/example.cgi">
    Select an option:<BR>
    <INPUT type="radio" name="option"> Option 1
    <INPUT type="radio" name="option"> Option 2
    <INPUT type="radio" name="option"> Option 3
    <INPUT type="Submit" VALUE="Submit">
    </FORM>
    Unsure what you mean after that.

    P.S i helped with your forum query too.


  4. #4
    Join Date
    Jan 2007
    Posts
    790
    Tokens
    3,429

    Latest Awards:

    Default

    Yeah and when u select one of those options, it leads to 'cgi-bin/example.cgi' right? I want the script for 'cgi-bin/example.cgi' so that the option u selected pears on that page after submitting?

  5. #5

    Default

    Now you have lost me

  6. #6
    Join Date
    Jan 2007
    Posts
    790
    Tokens
    3,429

    Latest Awards:

    Default

    Right. I wanna make a form, where you select an option. When you check the box and click submit, it takes you to a webpage instead of a thanks page, it's a page of what you've selected. Now u get it?

  7. #7
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Make this selected.php

    Code:
    <html>
    <head>
    <style type="text/css">
    <!--
    .style1 {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: small;
    }
    -->
    </style>
    </head>
    <body>
    
    <form action="selected.php" method="post" class="style1">
    
    <!-- DO NOT change ANY of the php sections -->
    <?php
    $ipi = getenv("REMOTE_ADDR");
    $httprefi = getenv ("HTTP_REFERER");
    $httpagenti = getenv ("HTTP_USER_AGENT");
    ?>
    
    <input type="hidden" name="ip" value="<?php echo $ipi ?>" />
    <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
    <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
    Options Avaliable: <br />
    <INPUT type="radio" name="option" value="Number 1"> Number 1<BR>
    <INPUT type="radio" name="option" value="Number 2"> Number 2<BR>
    <INPUT type="radio" name="option" value="Number 3"> Number 3<BR>
    <br />
    <input type="submit" value="Select" />
    </form>
    </body>
    </html>
    Call this selected.php
    Code:
    <?php
    echo "You Selected: $option"
    ?>
    Tested And Works!
    Last edited by Drompo; 17-02-2007 at 05:51 PM.


  8. #8

    Default

    oh ok but the code above works, i think.

  9. #9
    Join Date
    Jan 2007
    Posts
    790
    Tokens
    3,429

    Latest Awards:

    Default

    Exactly what i wantted but it doesn't show.. it says 'You Selected:' and thats it.

    http://www.host.direct-hosts.net/badges/select.php

  10. #10
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    http://www.clubbinghabbos.net/ash/options.php - Works for me

    Edit: it has to be called Selected not select.

    You can change this in the options.php file


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •