[eluser]01010011[/eluser]
[quote author="tomdelonge" date="1271226570"]You have to "echo" it.
Use:
Code:
<?php echo form_open();?>
I think that's all you need.[/quote]
Thank you very much tomdelonge. You were right, it works now because I forgot to use echo. The presenter is using the shorter form of the language and I am not (because I have not figured out how to get it to work).
[quote author="mddd" date="1271245338"]Or use '<?=' which is the same as '<?php' and 'echo' put together.
<?=form_open();?>[/quote]
Thanks for your reply mddd. When I typed that, it did not work in Chrome. How do I enable this?
[quote author="adamp1" date="1271247058"]Err you havn't closed the closing tag on the <form> open tag??
You have
Code:
<form method="post" action="http://www.example.com/CodeIgniter/index.php/blog/comment_insert
You want
Code:
<?php print form_open('blog/comment_insert');?>
[/quote]
Thanks adamp1, I don't know how I managed to leave that out in this post.
[quote author="Kindari" date="1271224609"]If you include this code in your source:
Code:
<?php form_open('blog/comment_insert'); ?>
<?php form_hidden('entry_id', $this->uri->segment(3)); ?>
it will output:
Code:
<form method="post" action="http://www.example.com/CodeIgniter/index.php/blog/comment_insert
<input type="hidden" name="entry_id" value="1" />
If you need further help, post the source code you are actually using, not what you see in his tutorial.[/quote]
Ok, Thanks Kindari