View Full Version : Bit of code needed to pass a variable to a URL.

01-17-2009, 10:56 PM
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:


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

Any help would be greatly appreciated.

01-17-2009, 11:38 PM
A simple form, method="get", will do that for you:

<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" />

No Javascript is needed unless you want to validate.

01-17-2009, 11:51 PM
and this will result in a URL formatted thusly?


01-18-2009, 06:53 AM
That worked. Much thanks, itsallkizza.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum