My first attempt was to use a <span> tag with a javascript function, which gave me the layout i wanted, but in order to transfer the javascript functions to PHP, i need a JSP page to right it to the Database, which confuses the devil out of me, or a way to transfer the variables from javascript to PHP without adding hundreds of lines of code.
My second attempt was to make an image button using the <INPUT> tag, which gave me the function i wanted, but it screwed up the layout, since the first instance (which is in a while php function) is always elongated (like, it would make the division between the title and the message have a gap bigger than what i want), but after that, all of them look fine.
How it works:
Basically, using the <Form> tag with no attributes, a button, and a hidden field, set up like so:
Expand|Select|Wrap|Line Numbers
- <? if ($var1) mysql_query("query"); ?>
- HTML stuff
- <?php stuff
- echo "<FORM><TR><TD colspan=4 align=right><INPUT type=hidden name=target value='{$messages_row[datetime]}'>";
- echo '<INPUT type=submit value="button" name="var1"></TD></TR></FORM>';
The question:
Is there anyway to make a button small (13x10 Pixels), layout friendly (no PNG image), and also not use a ton of code to do what i want?
Thanks,
Hh2