Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: Help Please


Message #1 by "bindiya" <bindiya@d...> on Sun, 19 May 2002 13:32:10 -0700
Dear sir
 my problem is that on button click i want form to return control to another
sub form .But it is not
showing any action after button click .

Response.Write "<form method="post" action="subdata">"
for this satement i have to use double cots at action clause but it gives me
error .But if i put single cot it does not give me any error.


Sub subCustomCode

 Response.Write "<p><b>" & Request("Username") & "</b>, please enjoy your
stay!<p>"
 Response.Write "<i>Your custom function is executed at this point.</i>"
 Response.write "<body>"
 Response.Write "<br><center>"
 Response.Write "<form method='post' action='subdata'>"
 Response.Write "<table border=1 ><TR><TD><b> Welcome "
 Response.Write "</b></TD><TD><b> ClasifiedAdvertisement</b></TD></TR>"
 Response.Write "<TR><TD><b> Select Type of Avertisement</b></TD>"
 Response.Write "<TD>  <SELECT id=select1 name=select1> "
 Response.Write "<OPTION selected value =0>Matrimonial</OPTION>"
 Response.Write "<OPTION  value =1>Situation Vacant</OPTION>"
 Response.Write "<OPTION  value =2>MotorCycle</OPTION><OPTION  value
=3>Tours & Travel</OPTION>"
 Response.Write "<OPTION  value =4>Medical</OPTION>"
 Response.Write "<OPTION  value =5>Misc For Sale</OPTION>"
 Response.Write "<OPTION  value =6>Misc Wanted</OPTION>"
 Response.Write "<OPTION  value =7>Pets & LiveStock</OPTION>"
 Response.Write "<OPTION  value =8>Plants and Seedling </OPTION>"
 Response.Write "</SELECT> </TD></TR><tr><td><b>Size of Advertisement</b>
</td>"
 Response.write"<td><SELECT id=select2 name=select2>"
 Response.Write " <OPTION selected value =0>1*1</OPTION>"
 Response.Write "<OPTION  value =1>2*2</OPTION>"
 Response.Write "</SELECT></td></tr> <tr><td><b>Company Profile</b> </td>"
 Response.Write "<td> <INPUT id=text1 name=text1></td></tr> "
 Response.Write "<tr><td>Title  </td><td>"
 Response.Write " <INPUT id=text1 name=text1></td></tr>"
 Response.Write "<tr><td>Qualification  </td><td> "
 Response.Write "<INPUT id=text1 name=text1></td></tr>"
 Response.Write " <tr><td>Requirements   </td><td>"
 Response.Write " <INPUT id=text1 name=text1></td></tr> "
 Response.Write " <tr><td>Contact Information    </td>"
 Response.Write "<td> <INPUT id=text1 name=text1></td></tr>"
 Response.Write "<tr><td></td>"'<INPUT id=button1 name=button1 type=button
value=Reset></td>"
 Response.Write "<td><INPUT id=button1 name=button1 type=button value=Submit
></td>"
 Response.Write "</tr></table></form></center><body>"

End Sub

sub subdata
Response.Write "hwlloooooo"
end sub

%>




Message #2 by "Rob Parkhouse" <rparkhouse@o...> on Mon, 20 May 2002 08:51:45
Your line of code:

Response.Write "<form method="post" action="subdata">"

should be

Response.Write "<form method=""post"" action=""subdata"">"

Regards


  Return to Index