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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I would like to be able to write a

Status
Not open for further replies.

MAWarGod

Programmer
Feb 15, 2002
352
US
I would like to be able to write a code like this to a asp
file, Use a asp page input box from action
<%
Dim doit
doit = request.form(&quot;doit&quot;)
if doit = &quot;doit&quot; then

Session(&quot;name&quot;) = request.form(&quot;name&quot;)
Session(&quot;color&quot;) = request.form(&quot;color&quot;)

response.write (&quot;Users name:&nbsp;&quot;) & Session(&quot;name&quot;)
Response.write (&quot;<BR>&quot;)
response.write (&quot;Color chosen:&nbsp;&quot;) & Session(&quot;color&quot;)
Else
if doit = &quot;&quot; then

%>
<br><font color=&quot;#00FF00&quot; size= 3>Step into the Lime-light</font>
<FORM METHOD=&quot;post&quot; ACTION=&quot;colortest.asp&quot;>


Please enter your name:<font size=&quot;1&quot;>
<INPUT TYPE=&quot;text&quot; NAME=&quot;name&quot;></font>
<BR><BR>
Please select a color:<BR>
<input type=&quot;radio&quot; name=&quot;color&quot; value=&quot;#00FF00&quot;><font color=&quot;#00FF00&quot;>Lime</font>
<input type=&quot;radio&quot; name=&quot;color&quot; value=&quot;RED&quot;><font color=&quot;RED&quot;>RED</font>
<input type=&quot;radio&quot; name=&quot;color&quot; value=&quot;Black&quot;><font
color=&quot;Black&quot;>Black</font>


<BR><BR>
<input type=&quot;hidden&quot; name=&quot;doit&quot; value=&quot;doit&quot;>
<INPUT TYPE=&quot;submit&quot; VALUE=&quot;Submit&quot;>&nbsp;<input type=&quot;reset&quot; name=&quot;reset&quot;
Value=&quot; Reset &quot;>
</form>

<%
End if
End if
%>
------------------------colortest.asp-------------------------

but I want to the result to print to file

To Be this way CAN THIS BE DONE?

<% If Handle=&quot;WarGod MA&quot; then
Response.write &quot;<b><font color='gold'>&quot;
end if %>



WarGod MA being the name the User put in
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top