Textarea with a variable in it |
[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.
[eluser]pistolPete[/eluser]
[quote author="Fr3aked0ut" date="1235487052"]What should I do? [/quote] Post more code (controller and view)!
[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()
[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'.
[eluser]Fr3aked0ut[/eluser]
Of course, I made the function admin_view in Loader.php. And im returning it to: Code: $output .= $this->$page();
[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.
[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..)
[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".
[eluser]Colin Williams[/eluser]
Just run htmlspecialchars($meta) and see if that does the trick.
[eluser]TheFuzzy0ne[/eluser]
Blast! I just came on here to suggest doing that. Hehe. |
Welcome Guest, Not a member yet? Register Sign In |