Log in

View Full Version : Why is it not working?



costas
01-13-2007, 12:54 PM
Hi to all,
This is my code:

<a href="mylink.php" style="text-decoration:none"><input type="button" value="Link"></a> When I'm loading this script on Mozilla it works fine but when I'm trying to open that page with Internet Explorer this button doesn't work as if it was disabled!! Why is this happenning? Does the style thing make something that IE doesn't support? Please help! (note this script is in a php file)

Thanks in advance!

jscheuer1
01-13-2007, 06:05 PM
I'm not certain why it doesn't work exactly. However, although the code validates, it looks very non-standard. A standard way to write something that would layout as your code does and that would work as expected in IE and other browsers is like so:


<form action="mylink.php" style="display:inline;"><input type="submit" value="Link"></form>

I say a standard way as, even better would be to use a class designation for the form and select it in a stylesheet for display:inline, instead of declaring the style in the form tag.

The style:


.formlink {
display:inline;
}

The new code:


<form action="mylink.php" class="formlink"><input type="submit" value="Link"></form>

costas
01-14-2007, 03:08 PM
No no, I'm not validating anything! I just want a button instead of a non-goodlooking link! That's all! But I think I'll do it like I'm validating something so they work! Thanks for answering!

tech_support
01-15-2007, 01:28 AM
No no, I'm not validating anything!

Bad move.



I just want a button instead of a non-goodlooking link!
That is a button.



No no, I'm not validating anything! I just want a button instead of a non-goodlooking link! That's all! But I think I'll do it like I'm validating something so they work!

You're overusing "!"

costas
01-15-2007, 07:38 PM
Firstly, you can't just say that something is bad move when you don't know what it is used for!!!!!!!!!!!! I mean I want to use that button as a link AND NOT AS A SUBMIT BUTTON!!!!!!!!! Secondly, I clearly said that I JUST WANT THAT BUTTON INSTEAD OF A NON-GOODLING LINK!!!!!!!!!!!!!!!!!!!! Thirdly, I like using "!" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

That was all! Have a nice week!!!!!!!!!!

jscheuer1
01-15-2007, 08:40 PM
Yeah but, I think tech_support only meant that not validating was a bad move. Still, his post wasn't very clear or helpful, just my two cents.