Jump to content

Button to Input Submit


cpugeek

Recommended Posts

I'm currently editing a pre-existing template but in the submit buttons they used javascript and button tags, and I'm trying to translate that into php and the input submit tag. Any ideas on how to do this? I've finished the validation all that's left is the CSS.Current HTML & CSS

<button class="button_colour round_all" onClick="location.href='../auth/login'"><img width="24" height="24" alt="Locked 2" src="../beauty/images/body/icons/small/white/Locked%202.png"><span>Login</span></button>#login_box button {	clear: both;	display: block;	float: right;	margin: 10px 30px 55px;}body .round_all {	border-radius: 3px 3px 3px 3px;}button, button.skin_colour {	background: -moz-linear-gradient(center top , #9B6CA6 0%, #8D579A 99%) repeat scroll 0 0 transparent;	border: 1px solid #8D579A;	box-shadow: 0 1px 0 #FFFFFF, 0 1px 0 rgba(255, 255, 255, 0.2) inset;}

Link to comment
Share on other sites

what exactly is the issue? For onclick, maybe you mean to be directing to a specific page? i.e. login.php?Anyway, you are still using javascript, unless what you provided is what you are trying to change from?PHP only runs on the server side, so maybe you are trying to make a login page to submit data with? In the case you would want to use a form and POST or GET.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...