0

Ok Good afternoon.

I'm Just starting ASP. in php i do something like this

<?php 
If(isset($_POST["submit"]))
{
    echo "You clicked me yeh?";
 }
?>

Works without problems , Now i try to translate the same for ASP and i do something like this

<html>
<head>
<title>testHome in ASP</title>
<body>
<% 

if Request.Form("submit") ="test" then
    Response.Write("Ok Mate You Just Clicked Me!")
%>
<form name = "superform" id="superform" method="post" action="idc.asp">
<input type="submit" name="submit" value="test"/>
</form>
</body>
</head>
</html>

And instead i get this super annoying error.

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

Please What Seems to be the error here?

Rick Towers
  • 13
  • 1
  • 9

1 Answers1

2

You need to close off the 'if ... then'

end if

If you can, you can get IIS to send error messages to the browser: IIS6 or IIS7

And if you are using visual studio you can also setup debugging