Real Estate Forums

Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here.

Reply
 
Thread Tools Display Modes
Old 02-22-2007, 10:25 PM
RESynergy RESynergy is offline
Real Estate WebMaster
 
Join Date: Nov 2006
Posts: 109
RESynergy is on a distinguished road
Default PHP form problem

The form is a dynamic checkbox list pulled from the db.

Even if checkbox(s) is checked or not I cannot retrieve the value of the selected item(s) after submitting the form with PHPself.

Here is the input code of the form -
<input type='checkbox' value='<?echo $ID;?>' name='<?echo $name_counter;?>'></b></td></tr>";

If I place a php echo after the input field the variable $name_counter returns a name like name1, name2, name3 etc.

Based on the above, once the form is submitted with the first three check boxes checked shouldn't something like this code retrieve the values after submitted with phpself?

echo $name1;
echo $name2;
echo $name3;

That won't return anything though.

I tried get and posts
as in
$t1=$_get['name1'];
echo 't1 = ', $t1;?><BR><?
$t2=$_GET['name2'];
echo 't2 = ', $t2;?><BR><?
or
$t1=$_POST['name1'];
echo 't1 = ', $t1;?><BR><?
$t2=$_POST['name2'];
echo 't2 = ', $t2;?><BR><?

I've been reading Google posts about it all night without success.
Reply With Quote
Old 02-22-2007, 10:41 PM
RESynergy RESynergy is offline
Real Estate WebMaster
 
Join Date: Nov 2006
Posts: 109
RESynergy is on a distinguished road
Default Re: PHP form problem

Sorry but I guess I'm Getting through it. I removed the <?echo ' and left just the variale there and it is picking up the value.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 06:04 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.