I need to create a button that is a hyperlink as opposed to a submit button, how do I do this?
I know it is basic, and html not php, but any help would be appreciated.
Thanks
Like this?
<FORM ACTION='somepage.html' ACTION=POST> <INPUT TYPE='SUBMIT' VALUE='Go There'> </FORM>
This will create a button that says "Go There" and if u click it it will take to you the page "somepage.html".
Frag
<script> function changePage() { window.parent.location.href = 'someotherPage.php';} </script> <input type="button" value="Go" onclick="javascript:changePage();">
or
<script> function changePage(a) { window.parent.location.href = a;} </script> <input type="button" name="someotherPage.php'" value="Go" onclick="javascript:changePage(this.name);">
<input type="button" value="go" onClick="javascript:location='url.php'">
so you don't need to make a function
Also remembering that Netscrap won't display input types unless form tags are wrapped around it.... 🙂
<form action="go.php"> .... </form> <a href='javascript:document.forms[0].submit()'>Submit</a>
I'd have to go with Frag on this one:
<FORM METHOD="POST" ACTION="next_page.php"> <INPUT TYPE="submit" VALUE="Go To Next Page"> </FORM>
A little different but basically the same. Why use Javascript? It just takes time to parse client side that you don't need to use.