![]() |
| HTML | PHP Scripts | Webmaster Tools | Webmaster Forums | Web Hosting | Domain Names | Webmaster Books |
|
|
#1 |
|
New Member
Join Date: Oct 2009
Webmaster Discussions: 1
Rep Power: 6 ![]() |
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 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 |
|
|
|
![]() |
| Bookmarks |
| Tags |
| form, url |
| Thread Tools | |
| Rate This Thread | |
|
|
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 |