[nycphp-talk] OT?: HTML question
David Krings
ramons at gmx.net
Fri Oct 13 19:12:53 EDT 2006
Hi,
this may be a bit off topic, because it is really related to HTML, but I
figured anyone doing PHP most likely knows HTML as well and often can't do
without it. Well, here it goes.
I have a page that contains three navigation buttons. Each button is inside
its own form together with a hidden input and each form calls the same
script. The hidden input basically just passes on a value via post. The
buttons each act submit buttons for the forms. Maybe the code shows this
better, so I attached it below. I also added some non breaking spaces to
make some room between the buttons.
My intention is to have all three buttons in one row, but they appear in
three paragraphs sort of and that is not what I want. So, how do I get
these buttons to be in the same row without using a table, which supposedly
is a big no no for page layout. I looked around and sources recommend div
tags, which I find to be excrutiatingly annoying to use. So, any ideas on
how to get the result the easy way?
Thanks in advance,
David K.
<form method="POST" action="showhelper.php">
<input type="hidden" name="direction" value="back" />
<input type="submit" value="Previous" />
</form>
<form method="POST" action="showhelper.php">
<input type="hidden" name="direction" value="next" />
<input type="submit" value="Next" />
</form>
<form method="POST" action="showhelper.php">
<input type="hidden" name="direction" value="back" />
<input type="submit" value="Back to Main Menu" />
</form>
More information about the talk
mailing list