CodeIgniter Forums
Form Helper Bug ? ( form_open ) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Form Helper Bug ? ( form_open ) (/showthread.php?tid=12182)



Form Helper Bug ? ( form_open ) - El Forum - 10-09-2008

[eluser]The Wizard[/eluser]
Code:
<?
    $form_attributes = array
    (
    
    );

    $form_hidden = array
    (
        'sender' => 1,
        'receiver' => 2
    );

?>

<?= form_open( 'user/message', $form_attributes, $form_hidden ); ?>

Code:
<?
    $form_hidden = array
    (
        'sender' => 1,
        'receiver' => 2
    );

?>

<?= form_open( 'user/message', '', $form_hidden ); ?>

Hello friends, the first code part if you use this,
it will send everything in a url like:

http://127.0.0.1/c88v2/user/message?sender=1&receiver=2&subject=dsfdfg&data=sdf&mysubmit=Submit+Post!

but if you just use a empty second parameter like '' then it will work
properly.

Maybe it has been found earlier, but i just want to be helpfull Smile

Take care friends