Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Submit button

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Submit button
  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 >>
 Submit button - 9/15/2004 10:16:57 PM   
  vledda

 

Posts: 9
Score: 0
Joined: 9/6/2004
From:
Status: offline
I' creating a webpage where the user types in a server name, this name is then searched in file.

This is the code for the html button

<form method="post" name="frmRDNS">
<P> </B></FONT></LABEL> </P>
<P><FONT size=4>Enter Agent Name</FONT></P>
<p align="center"><font face="Arial" size="2"><b><label for="frmHost">
</label><input name="frmHost" id="frmHost" value=" <%=strIP %>" >
<input type="button" name="btnSubmit" id="btnSubmit" value=" Enter " onclick="document.frmRDNS.submit()"></b></font></p>
</form>

and this is the vb code

strIP = Request.Form("frmHost")

It doesnt seem to do anything at all. I reckon the error is after the 'onckick' but im not sure

Any help?
<P align=center><font face="arial" size="2" color="#003366"><b>
</b></font></P>
</td>
</tr>
</table>
</td>
</tr>
<tr><td>
 
 
Post #: 1
 
 Re: Submit button - 9/16/2004 12:52:36 AM   
  dalejwright22

 

Posts: 11
Score: 0
Joined: 9/15/2004
From: United Kingdom
Status: offline
what are you actually trying to do??? you have a onclick event that is being called when u click on the button, it is calling a function called submit, so some where in your code you will need to find this javascript function and see what the code is actually doing.
I assume that the javascript is doing a validation check. if ur not used to using Javascript, use server side validation..

If your just wanting to pass some value to the ASP page, then take the onclick off the end of the input type and value should be submit.. ie
<INPUT type="submit" value="Send">

hope this helps.

(in reply to vledda)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Submit button 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