Gossamer Forum
Home : General : Perl Programming :

Javascript - Passing Values

Quote Reply
Javascript - Passing Values
I believe that this is more of a javascript question (but cgi related!) but I am not aware of any JS boards that are as active as this is. If you are aware of any, I would appreciate knowing about them and will direct my question there. TIA.

My JS question is: I want to have a form on a page that will ask for a person's username. When entered and submitted it will bring up a page with the url:

http://www.foobar.com/foobar.cgi?<username>

The closest I have been able to come is:
http://www.foobar.com/foobar.cgi?=<username> (Notice the equal sign.)

Quote Reply
Re: Javascript - Passing Values In reply to
The problem is attaching a value by itself. If this is a database you are developing, you can simply use the field as the start of the argument and have it equal the username value, like the following:

Code:
http://www.foobar.com/foobar.cgi?user=<username>

But to print the value in the query string without the argument, I don't know how you would do that.

And I really don't think a javascript will help you with this...

BTW: Here are a few javascript for future reference:


Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Javascript - Passing Values In reply to
Thanks, Eliot, you're always there! btw - I took a different route and modified a cgi to do what I wanted. (See, this was cgi related!) Smile

Again, thanks. I'll bookmark the JS forums.