pro_php thread: Evaluating a variable
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
|





