Textarea with a variable in it - 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: Textarea with a variable in it (/showthread.php?tid=16087) Pages:
1
2
|
Textarea with a variable in it - El Forum - 02-24-2009 [eluser]Fr3aked0ut[/eluser] Hi, I am building a new system which works with CodeIgniter (Mhmm...) of course. So, I tried to make some textarea with a variable in it, e.g: Code: <textarea name='meta' id="meta" cols="55" rows="10"> What should I do? Thanks in advance. Textarea with a variable in it - El Forum - 02-24-2009 [eluser]pistolPete[/eluser] [quote author="Fr3aked0ut" date="1235487052"]What should I do? [/quote] Post more code (controller and view)! Textarea with a variable in it - El Forum - 02-24-2009 [eluser]Fr3aked0ut[/eluser] Actually, what I posted is part of my view file. Here is what you need (I cant give whole view file it's long and you dont need it) Code: <form action="" method="post"> Controller(current page's function): Code: function system() Textarea with a variable in it - El Forum - 02-24-2009 [eluser]pistolPete[/eluser] First of all, don't use short open tags. Code: return $this->load->admin_view('system', $sys, true); Where are you returning these contents to? Did you extend the loader class? Because by default there is no 'admin_view'. Textarea with a variable in it - El Forum - 02-24-2009 [eluser]Fr3aked0ut[/eluser] Of course, I made the function admin_view in Loader.php. And im returning it to: Code: $output .= $this->$page(); Textarea with a variable in it - El Forum - 02-24-2009 [eluser]TheFuzzy0ne[/eluser] Please post the contents of that function also. It's possible that your problem is being caused by invalid HTML. [url="validator.w3.org"]It is well worth validating your code[/url], to be sure. I've seen simple typos mess up my entire Web site. Textarea with a variable in it - El Forum - 02-24-2009 [eluser]Fr3aked0ut[/eluser] The function is working, 100% because im using it for all of my admin control panel. Code: function admin_view($view, $vars = array(), $return = FALSE) I dont think W3C could check it, because to see it they have to login first (Admin control panel..) Textarea with a variable in it - El Forum - 02-24-2009 [eluser]pistolPete[/eluser] [quote author="Fr3aked0ut" date="1235499178"]I dont think W3C could check it, because to see it they have to login first (Admin control panel..)[/quote] Then use "Validate by direct Input" or "Validate by File upload". Textarea with a variable in it - El Forum - 02-24-2009 [eluser]Colin Williams[/eluser] Just run htmlspecialchars($meta) and see if that does the trick. Textarea with a variable in it - El Forum - 02-24-2009 [eluser]TheFuzzy0ne[/eluser] Blast! I just came on here to suggest doing that. Hehe. |