Hey guys,
I had made a script that used form results. I had named the form objects like form[smth] . And I had let my script use these variables like form[smth]. However I remembered that I should do it like form["smth"], so I added quotes throughout the PHP script.
I didn't add any quotations to the form though.
The question is, is $form[smth] == $form["smth"] ?
Or do I need to change the form object names too?
Thanks.
Arrays through forms
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You should leave the HTML form object names as (IIRC it doesn't work otherwise):
and as you have already done quote the element name within the PHP script.
Mac
Code: Select all
<input type="text" name="formїsmth]" />Mac