Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-19-2004, 04:13 PM help needed please
Novice Talker

Posts: 11
Trades: 0
please can someone help with the following code i am fairly new to php. i need the checkbox when checked to post variables to the next page


$num=mysql_numrows($result);
$i=0;
if ($num==0) {
echo "sorry fully booked";
} else {

echo "<br><B>holiday Park availability: </b><br><br>";
while ($i < $num) {
$sdate=mysql_result($result,$i,"sdate");
$edate=mysql_result($result,$i,"edate");
$price=mysql_result($result,$i,"price");{

echo "$sdate - $edate - Price from $price <input type=\"checkbox\" name=\"holidayhome1($i)\" value=\"$sdate|$edate|$price\" UNCHECKED>\n<br /><br />";
}

$i++;
}}


thank you in advance
ezhost is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-19-2004, 04:24 PM
witchblade32's Avatar
Super Talker

Posts: 140
Location: Lititz, PA
Trades: 0
Looks like you're creating an array with the values from the checkboxes. if your form is set with a method="post" it'll post the variable(s). What are you trying to do?
__________________
When you eliminate all other possibilities, what remains, no matter how improbable, is the answer.
witchblade32 is offline
Reply With Quote
View Public Profile Visit witchblade32's homepage!
 
Old 08-19-2004, 05:49 PM complete
Novice Talker

Posts: 11
Trades: 0
got this completed now:

while (list($sdate, $edate, $price) = each($HTTP_POST_VARS))
{
echo "<input type=\"hidden\" value=\"$value\" name=\"$name\">\n";
}
ezhost is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to help needed please
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.60055 seconds with 12 queries