Click here to Skip to main content
15,917,328 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi all,

I am not sure whether this is a right place to ask this question. Apologies for that.

My question is

I have an HTML form with button. On click of button it will redirect to .aspx page. I have used this form as signature in MS outlook, but it doesn,t redirect when button clicked.

Pleae help.

Thanks
Posted
Comments
bbirajdar 2-Aug-13 5:41am    
Place is correct but you have asked in the wrong way..let the code speak for you
PleaseHelpCP 2-Aug-13 5:50am    
<html xmlns="http://www.w3.org/1999/xhtml">
<form name="myform">
<table cellpadding="0" cellspacing="0" width="800px">
<tr>
<td><input type="image" value="Submit"></td>
</tr>
</table>
</form>
</html>
bbirajdar 2-Aug-13 10:05am    
this code does not have any redirection logic

1 solution

You did not tell it where to redirect to.
To do this add the action="" to the form
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<form action="youraspx.aspx" name="myform">
<table cellpadding="0" cellspacing="0" width="800px">
<tr>
<td><input type="image" value="Submit"></td>
</tr>
</table>
</form>
</html>

</html>

Oh and you should put a method also.
method="get or post"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900