RE: how to use echo checkboxes in php when i don't have access to $_POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----------------------------------------
> Date: Sat, 28 May 2011 16:39:13 +0430
> From: nickparsa@xxxxxxxxx
> To: lars@xxxxxxxxxx
> CC: php-general@xxxxxxxxxxxxx
> Subject: Re:  how to use echo checkboxes in php when i don't have access to $_POST
>
> because when the name is in echo it can't access to $_POST
> 4 example $_POST['p$i']
> it tells me undefined variable p$i
>
> when in html we write it in form because it has post method it can set
> $_POST but here in php i just echo it and i can't access it
> maybe i am wrong but how can i correct it?

In PHP, single quotes do not allow in-line variable substitution.
My guess is that it will work if you use $_POST['p'.$i] or $_POST["p$i"] instead.

Further, please mind your punctuation and language use - here I also refer to the 
other posts you made. As was stated before, people may be offended and thus it makes
the chances of you solving your problem fast smaller.
As a last, please refrain from bombarding the list with small posts. Please think a bit
before posting your questions. Thanks in advance.

Best regards,
Jasper Mulder
 		 	   		  
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux