All,
I would like to know where I could find a good tutorial for php. I learning this language..and I run into problems.
Probably easy:
$choice1= $HTTP_POST_VARS['choice1'];
$choice2= $HTTP_POST_VARS['choice2'];
$choice3= $HTTP_POST_VARS['choice3'];
$ch1=strlen($choice1);
$ch2=strlen($choice2);
$ch3=strlen($choice3);
if ($ch1 == 0 || $ch2 == 0 || $ch3 == 0)
{
echo "One of your fields is missing. Please use the Back Button to return to the form. Thank you!\n";
exit;
}
Basically I have created a form: http://www.holleyjohnson.net/Holidaymusic.html
I am working on the choices / time options for this form.. I would like to make it easier for down the road incase I need to add more choice options. I don't want to continously add if statements, becausethis code can get very long.
Ideas?
Thanks
Stratis
Website: www.holleyjohnson.net
I would like to know where I could find a good tutorial for php. I learning this language..and I run into problems.
Probably easy:
$choice1= $HTTP_POST_VARS['choice1'];
$choice2= $HTTP_POST_VARS['choice2'];
$choice3= $HTTP_POST_VARS['choice3'];
$ch1=strlen($choice1);
$ch2=strlen($choice2);
$ch3=strlen($choice3);
if ($ch1 == 0 || $ch2 == 0 || $ch3 == 0)
{
echo "One of your fields is missing. Please use the Back Button to return to the form. Thank you!\n";
exit;
}
Basically I have created a form: http://www.holleyjohnson.net/Holidaymusic.html
I am working on the choices / time options for this form.. I would like to make it easier for down the road incase I need to add more choice options. I don't want to continously add if statements, becausethis code can get very long.
Ideas?
Thanks
Stratis
Website: www.holleyjohnson.net
Comment