Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Bit of code needed to pass a variable to a URL.

    Hi All,

    I'm trying to hack my wordpress home page to enable users to enter in a package tracking number and pass it to boxoh.com, an online package tracker.

    All I need is a bit of code to pass the number to the URL in the following format:

    http://boxoh.com/?t=85642012466&rss=1

    where "85642012466" is the number the user enters in.

    Any help would be greatly appreciated.
    Last edited by pbase; 01-18-2009 at 12:19 AM.

  • #2
    Senior Coder
    Join Date
    Oct 2008
    Location
    Long Beach
    Posts
    1,196
    Thanks
    36
    Thanked 164 Times in 164 Posts
    A simple form, method="get", will do that for you:
    Code:
    <form action="http://boxoh.com/" method="get">
    	<input type="hidden" name="rss" value="1" />
    	<input type="text" name="t" /><br />
    	<input type="submit" value="submit" />
    </form>
    No Javascript is needed unless you want to validate.
    Feel free to e-mail me if I forget to respond ;)
    ohsosexybrit@gmail.com

  • Users who have thanked itsallkizza for this post:

    pbase (01-18-2009)

  • #3
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    and this will result in a URL formatted thusly?

    http://boxoh.com/?t=85642012466&rss=1

  • #4
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    That worked. Much thanks, itsallkizza.


  •  

    Tags for this Thread

    Posting Permissions

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