Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-10-2012, 12:37 AM   PM User | #1
LoganDeyo
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
LoganDeyo is an unknown quantity at this point
Change a Link Based Off Text Box

Just joined the forums here!

I've having a lot of trouble as a HTML noob on this. Anyone who can help would be greatly appreciated.

I basically am trying to create a textbox, where you can enter a tracking number, and when you press the submit button, it sends you to lets say USPS' website, with the tracking information. I already have the link for it, so no need to find that, I just don't know how to do go about getting the text into the link.

An top of that, I'm looking to create the text box as an image. Sort of like how Twitter does it, and same with the submit button.

I'm becoming quite frustrated with this. I've looked at so many webpages trying to figure it out on my own, but can't seem to get it. Thanks guys...
LoganDeyo is offline   Reply With Quote
Old 11-10-2012, 03:04 AM   PM User | #2
minder
Banned

 
Join Date: Oct 2012
Posts: 81
Thanks: 0
Thanked 4 Times in 4 Posts
minder can only hope to improve
Quote:
I just don't know how to do go about getting the text into the link.
You can set the form's action attribute to the path of the script you want to send the data to and the form's method attribute to GET.

Then when the form is submitted all the form data is appended to the action's value as a query string with name/value pairs and so the form data effectively becomes part of the "link".
minder is offline   Reply With Quote
Old 11-10-2012, 04:26 AM   PM User | #3
rahmanwarsi123
New to the CF scene

 
Join Date: Nov 2012
Location: pakistan
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
rahmanwarsi123 is an unknown quantity at this point
i join this form
rahmanwarsi123 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:06 PM.


Advertisement
Log in to turn off these ads.