zodehala Posted September 5, 2006 Share Posted September 5, 2006 like you see following when you clicked button "connection.php" pages is loaded (we make this by button)[code]<form id="form1" name="form1" method="post" action="connection.php"> <label> <input type="submit" name="Submit" value="value1" class="Button"/> </label></form>[/code]suppose that there is a link is called "xxx" "connection.php" page will be loaded when i cliked link is called "xxx" how can i do it ?[code]<a href="" tabindex="1" title="loading" accesskey="1" target="_blank">xxx</a>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/19758-link-instead-of-button/ Share on other sites More sharing options...
HuggieBear Posted September 5, 2006 Share Posted September 5, 2006 You could use a javascript onClick() event to submit the form.Something like...[code]<a href="javascript:void(0)" onclick="document.forms.formName.submit()">xxx</a>[/code]RegardsRich Quote Link to comment https://forums.phpfreaks.com/topic/19758-link-instead-of-button/#findComment-86322 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.