Page 1 of 1

Can't make form create proper keys in an array.

PostPosted: 22. August 2004 20:03
by wastvedt
Hi!
This might be a problem with html as much as php, but I really don't know. I have a form that stores text input into an array. I want the text to be stored with a key of text. This is the code that prints that part of the form:
Code: Select all
echo "</td></tr><tr><td><input type=\"text\" name=\"entries[$crow[0]]['text']\" /></td></tr>";

When I display the key name in the section of the page that handles the form, I get \'text\' instead of text. Therefore, when I try to access the value by inputing the key, it returns a blank because the key \'text\' does not exist. Please help me!
Thanks, wastvedt :D