Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Form Problem

Status
Not open for further replies.

Johno2090

Programmer
May 3, 2002
31
0
0
GB
hi guys all i need to know is how to send the submit click of a form to a sub procedue in the same page

eg
<form Action=&quot;Publish&quot;>

</form>

Sub Publish

Check Form

end Sub

i want it to run the sub procedure before doing nething else thanks in advance
 
search this forum for the word &quot;call&quot;

there's a bunch of results. basically you can't do what you are trying without a bit of conditioning client/server.


_____________________________________________________________________
[sub]Where have all my friends gone to????[/sub]
onpnt2.gif

 
Cheers m8 im doing that as we speak but not much halp atm
 
example:
<%
function functionRun
response.write &quot;this ran&quot;
end function

if len(request.form(&quot;functionCall&quot;)) > 0 Then
functionRun
Else
%>
<body>
<form name=&quot;frm&quot; action=&quot;post&quot; action=&quot;thisPage.asp&quot;>
<input type=&quot;submit&quot; name=&quot;functionCall&quot; value=&quot;call function named functionRun&quot;>
</form>
</body>
<% end if %>

_____________________________________________________________________
[sub]Where have all my friends gone to????[/sub]
onpnt2.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top