944,161 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 1992
  • ASP RSS
Jun 11th, 2005
0

Why?

Expand Post »
i have this problem some couple of days back...and honestly im just new to ASP so to some maybe my problem is not that big...here it is:

im practicing making a web site using ASP and i have on my html two buttons, and inline with that i also used <form> tags for the two buttons. now my question is...why is it that the two buttons are one button apart from each other. what i want is to put them closer...what will i do?

another...can anybody here give me an example how to use javascript in buttons, vbscript will do. thanks a lot guys.


by the way, the two buttons results will have to be displayed in the same form and has to be inside a table...please help me. thanks again.
Reputation Points: 11
Solved Threads: 0
Light Poster
vhinehds is offline Offline
29 posts
since May 2005
Jun 15th, 2005
0

Re: Why?

Can you post some code?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
afgmail is offline Offline
18 posts
since Aug 2004
Jun 15th, 2005
0

Re: Why?

Quote originally posted by afgmail ...
Can you post some code?
yeah...sure, here's the code:


<table border='0' width='80%'>
<tr>
<td align='top'>
<form name="form1" action = "twoforms.asp" method="get">
<input type="hidden" name="num_student" value="1">
<input type="submit" value="Boys School" id=submit1 name='BoysSchool'>
</form>
<form name="form2" action = "twoforms.asp" method="get">
<input type="hidden" name="num_subjects" value="2">
<input type="submit" value="Girls Schools" id=submit2 name=submit2>
</form>
<form name="form3" action = "twoforms.asp" method="get">
<input type="hidden" name="num_teacher" value="1">
<input type="submit" value="num_teacher" id=submit3 name=submit3>
</form>

</td>
</tr>
</table>
Reputation Points: 11
Solved Threads: 0
Light Poster
vhinehds is offline Offline
29 posts
since May 2005
Jun 15th, 2005
0

Re: Why?

It would be better to use just one form and use drop-down list or radio to identify data. Fopr example:
ASP Syntax (Toggle Plain Text)
  1. <form action="" method="post">
  2. <type="radio" value="Boys School" name="action">
  3. <type="radio" value="Girls Schools" name="action">
  4. <type="radio" value="num_teacher" name="action">
  5. <type="submit" value="Submit">
  6. </form>
  7. <%
  8. if len(Request("action"))>0 then
  9. QueryAction = Request("action")
  10. if QueryAction = "Boys School" then
  11. ' do something
  12. end if
  13. ' continue with the remaining
  14. if...
  15. end if
  16. %>
Reputation Points: 10
Solved Threads: 7
Posting Whiz in Training
zippee is offline Offline
294 posts
since Jan 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Vira e-mail
Next Thread in ASP Forum Timeline: Assigning values to variables





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC