CodeIgniter Forums
form_hidden -> csrf token printed twice to html source ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: form_hidden -> csrf token printed twice to html source ? (/showthread.php?tid=47413)



form_hidden -> csrf token printed twice to html source ? - El Forum - 12-07-2011

[eluser]conradk[/eluser]
Hello People Smile

I've been experimenting with CodeIgniter for a few days now. I really like it Smile

But here is something I find to be weird. Don't know if it's a bug or not. Some people over on the IRC channel said to me that they don't have this problem.

Here a dummy form generation with CI:
http://pastebin.com/LC7WAsEm

And here is the output:
http://pastebin.com/ay3C3nvM

As you can see, the token part is output twice to the screen.

When passing the hidden field through the form_open function like so:
http://pastebin.com/QH33k1Hz
... everything works as expected.

Has anyone had that issue before ? If yes, please say so. If it works fine for you, please say so too Smile

See you,
CK