Forums

Error Messages - Illegal variable _files or _env o

AprilFloyd 01 Feb, 2008
Illegal variable _files or _env or _get or _post or _cookie or _server or _session or globals passed to script

I get the above message when trying to run one form but my other form is fine.

Anyone help?
GreyHead 01 Feb, 2008
Hi AprilFloyd,

Looks as though something in the form code is triggering the Joomla Hacker protection. Please take a Form Backup and post it here or mail it to me at the address in my sig and I'll take a closer look (this may take a while as I'm busy away from my office and haven't yet got a test site installed on this laptop).

Bob
AprilFloyd 02 Feb, 2008
Thnaks bob for the quick reply. Much appreciated.

I looked in the form code and realised that I had used a number for naming a field in the form rather than text.

That was it.

Thanks again
GreyHead 02 Feb, 2008
Hi AprilFloyd,

Good, glad it's fixed. I hadn't realised that a number would do that - but makes sense, the problem is that a number isn't a valid PHP variable name.

Bob
Athena 17 Feb, 2009
I have the same error, here is my form code.

<br>
<br>
<DIV class=form_item   >
<DIV class="form_element cf_textbox" ><LABEL class=cf_label >Företagsnamn:</LABEL><INPUT class="cf_inputbox required" id=text_10  maxLength=150 size=30 name=text_10 ></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<DIV class="form_element cf_textbox" ><LABEL class=cf_label >Organisationsnummer:</LABEL><INPUT class="cf_inputbox required" id=text_9  maxLength=150 size=30 name=text_9 ></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<DIV class="form_element cf_textbox" ><LABEL class=cf_label >Kontaktperson:</LABEL><INPUT class="cf_inputbox required" id=text_8  maxLength=150 size=30 name=text_8 ></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<DIV class="form_element cf_textbox" ><LABEL class=cf_label >Adress:</LABEL><INPUT class="cf_inputbox required" id=text_7  maxLength=150 size=30 name=text_7 ></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<DIV class="form_element cf_textbox" ><LABEL class=cf_label >Postnummer:</LABEL><INPUT class="cf_inputbox required" id=text_6  maxLength=150 size=30 name=text_6 ></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<DIV class="form_element cf_textbox" ><LABEL class=cf_label >Ort:</LABEL><INPUT class="cf_inputbox required" id=text_5  maxLength=150 size=30 name=text_5 ></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<DIV class="form_element cf_dropdown" ><LABEL class=cf_label >Säljare som har kontaktat mig:</LABEL><SELECT class="cf_inputbox validate-selection" id=select_4 size=1 name=select_4 ><OPTION value=" Ingen" selected > Ingen</OPTION><OPTION value=" Dennis" > Dennis</OPTION><OPTION value=" Håkan" > Håkan</OPTION><OPTION value=" Kayleigh" > Kayleigh</OPTION><OPTION value=" Josefine" > Josefine</OPTION><OPTION value=" Marina" > Marina</OPTION><OPTION value=" Katrin" > Katrin</OPTION><OPTION value=" Ann" > Ann</OPTION><OPTION value=" Johan" > Johan</OPTION></SELECT></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<DIV class="form_element cf_textarea" ><LABEL class=cf_label >Telefonnummer att spärra:</LABEL><TEXTAREA class="cf_inputbox required" id=text_3 name=text_3 rows=5 cols=30 ></TEXTAREA></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<DIV class="form_element cf_checkbox" ><LABEL class=cf_label >Avtalsperiod:</LABEL>
<DIV class=float_left ><INPUT class="radio validate-one-required" id=12  type=checkbox value=12 name=12 ><LABEL class=check_label for=12 >12 Mån</LABEL><BR ><INPUT class=radio id=24  type=checkbox value=24 name=24 ><LABEL class=check_label for=24 >24 Mån</LABEL><BR ></DIV></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<DIV class="form_element cf_checkbox" ><LABEL class=cf_label >Jag vill ha mer info.</LABEL>
<DIV class=float_left ><INPUT class="radio validate-one-required" id=Ja  type=checkbox value=Ja name=Ja ><LABEL class=check_label for=Ja >Ja</LABEL><BR ><INPUT class=radio id=Nej  type=checkbox value=Nej name=Nej ><LABEL class=check_label for=Nej >Nej</LABEL><BR ></DIV></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<br>
<DIV class="form_element cf_button" ><INPUT  type=submit value=Skicka ></DIV>
<DIV class=clear > </DIV></DIV>
GreyHead 17 Feb, 2009
Hi Athena,

And I have the same answer:
<INPUT class=radio id=24  type=checkbox value=24 name=24 >


You cannot have a number as a valid field name.

Bob
This topic is locked and no more replies can be posted.