[eluser]Tom Taila[/eluser]
Ok so basically i want to have two submit buttons for posting a comment, one of which will post the users comment as per usual with all their details displayed in their comment post and the other button is supposed to "post as annonymous" where it does as you'd expect and post it annonymously, so heres the html code i have for my form:
Code:
<form action="<?php echo base_url();?>index.php/comment/add_comment1" method="post" id="comment_form">
<textarea name="comment" id="comment_textarea">Write a comment..</textarea><br />
<p><input type="submit" value="Post!" class="submit_comment_button"/> | <input type="submit" value="Post as anonymous!" class="submit_comment_anonymous_button"/></p>
</form>
but this simply creates two buttons for the same purpose, any1 know a way to do this i cant find one :S
sorry i know this isnt very codeigniter related