"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Go Back   Webmaster Forums > Code Forum > HTML Forum

Reply
 
Thread Tools Rate this Webmaster Discussion
Old 10-21-2009, 01:44 PM   #1
jo3design
New Member
 
Join Date: Oct 2009
Webmaster Discussions: 1
Rep Power: 6
jo3design is on a distinguished road
Populating Form Field from URL

I've done some searching on the forums, and have yet to find what I'm looking for. I'm not sure what language to post in, so I'm posting in HTML.

What I need is to be able to grab a section of a URL and pass it into a form text field in the page. For instance, if I visited "mysite.com/MyName", the page would show the same content as I have on "mysite.com", only adding "MyName" to a form field on the page.

An example similar (but not quite) to what I need:
Code:
http://www.htmlgoodies.com/beyond/javascript/article.php/3471111
That still does not accomplish exactly what I'm looking for, because of the added variables in the URL itself.

Is there a way to just grab everything after "mysite.com/" and populate a text field with it?


Does this make sense, or do I need to explain this in further detail?

Thanks in advance


jo3design is offline   Reply With Quote
Reply

Bookmarks

Tags
form, url

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


Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
Issue with Form Value only displaying initial # of a retrieved mysql text field. lbbeeson PHP Forum 6 07-20-2008 09:42 PM
Variable in Form action field pkamath84 Javascript Forum 4 07-16-2008 09:37 PM
Extracting Form Field Values ChubChub HTML Forum 0 10-10-2007 03:17 PM
FROM: field in form maxmillion Website Scripts Forum 4 01-31-2005 06:17 AM
Pass a value from a url string to a form field andrewatx HTML Forum 5 10-07-2004 06:04 AM


All times are GMT -5. The time now is 09:00 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.