Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't seem to get the syntax correct

Status
Not open for further replies.

dbrooks74

Programmer
Nov 13, 2001
105
US
I have the following line that I want to pass it a varible, can't seem to get it correct. Any ideas? THanks. -db

response.write &quot;<form name=&quot;&quot;frmLogin&quot;&quot; METHOD=&quot;&quot;POST&quot;&quot; ACTION=&quot;&quot;ConfirmNewPassword.asp?NAME=&quot; & sUserNameFromForm &quot>&quot;
 
try this
response.write &quot;<form name='frmLogin' METHOD='POST' ACTION='ConfirmNewPassword.asp?NAME=&quot; & sUserNameFromForm>&quot; Sometimes starting over can fix a problem at the end

admin@onpntwebdesigns.com
 
sorry I forgot a &quot;
response.write &quot;<form name='frmLogin' METHOD='POST' ACTION='ConfirmNewPassword.asp?NAME=&quot; & sUserNameFromForm & &quot;>&quot; Sometimes starting over can fix a problem at the end

admin@onpntwebdesigns.com
 
or you can just add a & on the end of your variable.

Cheers,

Gorkem.
 
Onpnt,

You forgot to close the ACTION keyword with a '

Just thought I would let ya know.. Don't mean to be nit picky but you know how web browsers are..

Cheers,

G.
 
To correct yours (though onpnt's will work, can't let him have all the fun)
Code:
response.write &quot;<form name=&quot;&quot;frmLogin&quot;&quot; METHOD=&quot;&quot;POST&quot;&quot; ACTION=&quot;&quot;ConfirmNewPassword.asp?NAME=&quot; & sUserNameFromForm & &quot;&quot;&quot;>&quot;
There should be an &amp; and two more quotes there to start the string again and finish off the quote for the action section.
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Thanks Gorkem, I actually think it's time to sign off because when I start making mistakes like that I've been staring at the screen wayyy too long.

Sorry for missleading db Sometimes starting over can fix a problem at the end

admin@onpntwebdesigns.com
 
Perfect. Now that I sent that variable &quot;sUserNameFromForm&quot; how do I reference it in the new form? Thanks. -db
 
<%
username = request(&quot;sUSerNameFromForm&quot;)
%>

or

<%=request(&quot;sUserNameFromForm&quot;)%>

That ought to do it..

Cheers,

G.
 
Thanks to all who wrote in. This saves me so much time having to figure this all out on my own. I hope to someday repay all of you by answering some of your questions. -db
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top