Advanced Search

Results 1 to 3 of 3

Thread: Input field help.

  1. #1
    Join Date
    Dec 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Input field help.

    Hey everyone.
    I've got a pretty simply question. (well i hope it is!)

    Basically i'm adding a sort of search feature to my site.

    I have a page with an input field and a button.
    Basically the user will enter a term into the field, then click the button!
    this will take them to another page, where i have a special script. How do i input what they entered on the first page into my script on the second page?

    Hope someone can help.
    Thanks

  2. #2
    Join Date
    Apr 2007
    Posts
    149
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    It really all depends on what script you are using.... if you post the code that would help alot...

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    <form action="otherpage.php">
      <div>
        <input type="text" name="v">
        <input type="submit">
      </div>
    </form>
    Code:
    <?php
      print $_GET['v'];
    ?>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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