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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby wastvedt » 22. August 2004 20:03

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
wastvedt
 
Posts: 6
Joined: 09. August 2004 19:34
Location: Pennsylvania, US

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 149 guests