Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Evaluating a variable


Message #1 by "arun" <arun@l...> on Tue, 2 Apr 2002 14:35:51 +0530
Hi Arun,
You have to do $$chkboxname. Also can you tell me which company are you present;y working in?
Rajani
 arun wrote:hi all,

I want to get the value of a form field.

code:
for($i=0;$i<$countofjobs;$i++){
$chkboxname="chkbox$i";
echo $chkboxname;
}

My field name is chkbox1...chkbox50. But it is taken as string. Is there any
function in php to convert it. Will eval() do?

with regards,
arun




---------------------------------
Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs

  Return to Index