Passing textbox string value in a url

  • Thread starter DACandFrontPage
  • Start date
D

DACandFrontPage

How do I pass a textbox string value by hitting a Submit button and go to
another page where the url of that page is the text box string value? For
example, my text box value is "test" and after hitting "Submit" I need to
goto the page - www.sample.com/test.asp where test.asp is the text box value
with .asp added on the end.
 
M

MD Websunlimited

Hi Derek,

<form onsubmit="this.action = this.T1.value + '.asp'; return true;" >

Note the above is not very robust.
 
D

Damian Jones

From your response I cannot figure out what is the command structure. My
problem is similiar. If anyone has an answer I'd like to hear it.


I would like to get a simple form where the user can enter data and get the
corresponding url. The constant would be
http://mycompanyintranet/drawings/UserEnterData.

I thought this would be fairly easy but I keep getting
http://mycompanyintranet/drawings/?=t1=UserEnterData

Here is the code is used.
<form method="Get" action="http://gnc3/drawings/">

<p><input type="text" name="T1" size="20"><input type="submit"
value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>

Any help is appreciated.

Thanks!!
 
S

Stefan B Rusynko

See http://irt.org/script/form.htm#10.3

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| From your response I cannot figure out what is the command structure. My
| problem is similiar. If anyone has an answer I'd like to hear it.
|
|
| I would like to get a simple form where the user can enter data and get the
| corresponding url. The constant would be
| http://mycompanyintranet/drawings/UserEnterData.
|
| I thought this would be fairly easy but I keep getting
| http://mycompanyintranet/drawings/?=t1=UserEnterData
|
| Here is the code is used.
| <form method="Get" action="http://gnc3/drawings/">
|
| <p><input type="text" name="T1" size="20"><input type="submit"
| value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
| </form>
|
| Any help is appreciated.
|
| Thanks!!
|
|
| "MD Websunlimited" wrote:
|
| > Hi Derek,
| >
| > <form onsubmit="this.action = this.T1.value + '.asp'; return true;" >
| >
| > Note the above is not very robust.
| >
| > --
| > Mike -- FrontPage MVP '97 - '02
| > http://www.websunlimited.com
| > FrontPage Add-ins Summer Promotion -
| > FREE Purchase J-Bots Plus 2004 & receive Meta Tag Maker 2004 a $24.95 value FREE
| >
| > > How do I pass a textbox string value by hitting a Submit button and go to
| > > another page where the url of that page is the text box string value? For
| > > example, my text box value is "test" and after hitting "Submit" I need to
| > > goto the page - www.sample.com/test.asp where test.asp is the text box value
| > > with .asp added on the end.
| > >
| > > --
| > > Derek A Caldwell
| >
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top