Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


I'm having a really newbie problem pleez help

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,1518
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> I'm having a really newbie problem pleez help
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 I'm having a really newbie problem pleez help - 10/24/2004 5:36:26 PM   
  MadDogm16

 

Posts: 1
Score: 0
Joined: 10/24/2004
From:
Status: offline
Well I'm trying to do a test of Response.Write but it doesn't seem to work everytime I click submit it just refreshes back to the original page


here it is

<HTML>
<HEAD>
<title>User Registration</title>
<%
SubmitButton = Request.Form("btnSubmit)

If SubmitButton = "Submit" Then
Response.Write "Your Information has been added to the database"
Else

%>
</HEAD>
<body ms_positioning="GridLayout">
<TABLE height="905" cellSpacing="0" cellPadding="0" width="672" border="0" ms_2d_layout="TRUE">
<TR>
<TD width="0" height="0"></TD>
<TD width="10" height="0"></TD>
<TD width="662" height="0"></TD>
</TR>
<TR vAlign="top">
<TD width="0" height="15"></TD>
<TD colSpan="2" rowSpan="2">
<form action="Test.asp" method="post">
<TABLE height="655" cellSpacing="0" cellPadding="0" width="893" border="0" ms_2d_layout="TRUE">
<tr>
<td><INPUT id="btnSubmit" type="submit" value="Submit" name="btnSubmit"></td>
</tr>
</form>
</TD>
</TR>
<TR vAlign="top">
<TD width="0" height="890"></TD>
<TD>
<%

End If
%>
</TD>
</TR>
</TABLE>
</body>
</HTML>

_____________________________

Time to rock out with my sock out. Woo Hoo!
 
 
Post #: 1
 
 Re: I'm having a really newbie problem pleez help - 10/27/2004 7:11:01 AM   
  wils0n

 

Posts: 14
Score: 0
Joined: 10/27/2004
From:
Status: offline
Look at this line:
quote:

SubmitButton = Request.Form("btnSubmit)



Change it to:

SubmitButton = Request.Form("btnSubmit")

Your form should work now.

(in reply to MadDogm16)
 
 
Post #: 2
 
 Re: I'm having a really newbie problem pleez help - 3/3/2005 1:03:49 AM   
  VBS

 

Posts: 110
Score: 0
Joined: 3/2/2005
From: Lebanon
Status: offline
dear MadDogm16
wils0n is right
and u might make sure that the value of btnSubmit is Submit
and don't forget that the caes is sensitve

Best Regards
Firas S Assaad

(in reply to MadDogm16)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> I'm having a really newbie problem pleez help Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts