-
Get URL Parameters
HEllo I am creating a script with javascript that get the url parameters but I can't solve it.
If my website is mywebsite.com
When sombody goes with mywebsite.com/Jack
The javascript will get the parameters after the slash and shows it in html. In this case javascript will show Jack on the screen
I have this at the moment found
Here
I didn't know how to do it or with wich script with Javascript or htaccess ??
Could somebody help me please
Sorry for the bad English
Last edited by jscheuer1; 02-24-2009 at 09:50 AM.
Reason: remove inadvertent links
-
-
Well, this:
points to a folder. If the Jack folder has an index file in it it will show up, otherwise there will be either a directory listing of the contents of the folder, or if the server doesn't permit that, whatever the server shows when it doesn't permit directory listings.
So, there really is no javascript required. If you have an index page in the Jack folder, you can hard code Jack on it.
-
-
Like
Hello jscheuer1
For example: pimpmysearch.com/homepage.html?gname=Jack
When somebody Replaces Jack it will be shown on the page .
I want it like that but output as text.
Last edited by jscheuer1; 02-24-2009 at 03:03 PM.
Reason: remove unnecessary link
-
-
Hi guys I got it must be written in php not in Javascript.
Thanks for your help guys.
Chedo
-
-
That's different. Javascript can do that, but for reliability in cases where the user has javascript disabled, a server side language like PHP, asp, etc. is much better.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks