RSS Forums RSS
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1562 | Replies: 3
Reply
Join Date: May 2005
Posts: 29
Reputation: vhinehds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
vhinehds's Avatar
vhinehds vhinehds is offline Offline
Light Poster

Help Why?

  #1  
Jun 11th, 2005
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2004
Posts: 18
Reputation: afgmail is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
afgmail's Avatar
afgmail afgmail is offline Offline
Newbie Poster

Re: Why?

  #2  
Jun 15th, 2005
Can you post some code?
Reply With Quote  
Join Date: May 2005
Posts: 29
Reputation: vhinehds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
vhinehds's Avatar
vhinehds vhinehds is offline Offline
Light Poster

Solution Re: Why?

  #3  
Jun 15th, 2005
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>
Reply With Quote  
Join Date: Jan 2005
Location: Sheffield, UK
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: Why?

  #4  
Jun 15th, 2005
It would be better to use just one form and use drop-down list or radio to identify data. Fopr example:
<form action="" method="post">
<type="radio" value="Boys School" name="action">
<type="radio" value="Girls Schools" name="action">
<type="radio" value="num_teacher" name="action">
<type="submit" value="Submit">
</form>
<%
if len(Request("action"))>0 then
  QueryAction = Request("action")
  if QueryAction = "Boys School" then
    ' do something
  end if
  ' continue with the remaining
  if...
end if
%>
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:48 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC