Powered by:
FutureQuest Hosting


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

Web Hosting
Shared       
Reseller     
VPS             
Dedicated 
Price:   $(US)
Space:     (MB)
Transfer:(GB)
Platform:


Advertise
Advertising Opportunities
Rate Card

Sponsor
Go Back   Webmaster Forums > Code Forum > HTML Forum


Reply
 
Thread Tools Rate this Webmaster Discussion
  #1  
Old 10-21-2009, 02:44 PM
jo3design jo3design is offline
New User
 
Join Date: Oct 2009
Webmaster Discussions: 1
Rep Power: 1
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


Reply With Quote
Reply
Sponsor

Bookmarks

Tags
form , url

Thread Tools
Rate This Thread
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 10:42 PM
Variable in Form action field pkamath84 Javascript Forum 4 07-16-2008 10:37 PM
Extracting Form Field Values ChubChub HTML Forum 0 10-10-2007 04: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 07:04 AM


All times are GMT -5. The time now is 06:59 PM.

Copyright © 1999 - 2009 Advanced HTML For Beginners and AHFB2000. All rights reserved.
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.