I can't get my css button to submit. the form directs to the correct page, but nothing gets submitted. any ideas?
echo "<form action=\"submit_something.php\" id=\"submit_x\" method=\"post\">
<input type=\"hidden\" name=\"submit_value\" value\"10\"/><div id=\"button\">
<a href=\"javascript:;\"onclick=\"javascript:document.getElementById('submit_something').submit()\">buttonvalue</a>
</div></div></form>"
update2:
echo "<form action=\"submit_something.php\" id=\"submit_x\" method=\"post\">
<input type=\"hidden\" name=\"submit_value\" value\"10\"/><div id=\"button\">
<a href=\"javascript:;\"onclick=\"javascript:document.getElementById('submit_x').submit()\">buttonvalue</a>
</div></div></form>"
update3: I tried this instead: css:
#btn {font-weight:bold}
html:
<form action="submit_something.php" id="submit_x" method="post">
<input type="submit" value="button" id="#btn">
</form>
The button doesn't get styled. I tried differentcss parameters, but the submit button doesn't get styled. Any ideas?
<input type="submit">