Page 1 of 1

wath dose this mean??

PostPosted: 03. November 2006 13:10
by marshal
Notice: Undefined index: logo in /all/site/DOMAIN/enquire.php on line 14

PostPosted: 03. November 2006 13:18
by Wiedmann
You want access an undefined index (in an array) with your PHP script.

PostPosted: 03. November 2006 13:20
by marshal
ok, how do I dsefine the index

The script ghather variables from a form thrue POST and after reading the variables it is soposed to mail them
thath error shows when I try to ghather the variables

PostPosted: 03. November 2006 13:23
by Wiedmann
All you need, you can read in the PHP manual ;-)

BTW:
If you want more help, please post the wrong PHP code (line 14).

PostPosted: 03. November 2006 13:26
by marshal
Code: Select all
   $first = $_POST["first"];
[/code]

PostPosted: 03. November 2006 13:41
by Wiedmann
Hm, in your code sample you have the array index "first", but the error message shows a problem with "logo"?

PostPosted: 03. November 2006 13:48
by marshal
it gives me the same error for every variable thath I try to retrive with $_POST

Can I use "foreatch" to store every varable into an array?

and if yes how do I call on a specific value ?

PostPosted: 03. November 2006 13:58
by Wiedmann
it gives me the same error for every variable thath I try to retrive with $_POST

FYI:
You don't retrieve variables with $_POST. Correct is:
With a POST-Request, you retrieve the Array $_POST,which have several indexes.

You are shure, that you have a POST formular (in HTML). And the form elements have the correct name attributes?

BTW: You are getting this error before or after transmitting the form?