2 Questions.

liunx

Guest
Hello! :)<br />
<br />
Two questions I hope you could help me with.<br />
<br />
Firstly, I want to have a button that when clicked goes to Google.<br />
The below code works for anything on my site - so I give an action for example of action="/dir/file.php"<br />
<br />
But when I try the following for Google:<br />
<br />
<form method="post" action="http://www.google.com"><br />
<div style="text-align : center;"><br />
<input type="hidden" name="proceed" value="1" /><input type="submit" class="main" value="Google" /><br />
</div><br />
</form><br />
<br />
I get an error at google saying "501 Not Implemented".<br />
<br />
Secondly,<br />
In CSS I have:<br />
<br />
input.main , textarea.main , select.main {<br />
width: 210px;<br />
}<br />
<br />
and for my input tags for example:<br />
<br />
<input type="text" name="NAME" class="main" size="30" maxlength="32" /><br />
<br />
With this, I shouldn't have the "size="30"" should I, as it's done in CSS?<br />
<br />
Many thanks in advance.<br />
<br />
Regards,<!--content-->You are getting an error at google because you are sending it form collection variables. Remove the <input type="hidden"> element and try again.<br />
<br />
Your CSS will override any HTML parameters you set as it has a higher precedance.<br />
<br />
Regards,<br />
Andrew Buntine.<!--content-->Originally posted by buntine <br />
You are getting an error at google because you are sending it form collection variables. Remove the <input type="hidden"> element and try again.<br />
<br />
Your CSS will override any HTML parameters you set as it has a higher precedance.<br />
<br />
Regards,<br />
Andrew Buntine. <br />
<br />
Hiya.<br />
<br />
I've tried removing that hidden input, but I still get the same.<br />
Could it be anything to do with the method?<br />
<br />
So really, I could leave the size in the input tags, if CSS fails, then it'll be that size, if CSS works, it'll size it to that.<br />
<br />
Thanks.<br />
<br />
Regards,<!--content-->Try this for the Google thing:<br />
<br />
<br />
<input type="button" value="Google" onClick="window.open('http://www.google.com')"><br />
<br />
or<br />
<br />
<input type="button" value="google" onClick="window.location='http://www.google.com'"><!--content-->
 
Back
Top