hey guys next problem here is checkin to make sure the required fields are filled in. it works to a point if there is missing info it gives you the right error and bands2.php but if all the fields are filled in it just gives you band2.php all filled in with the info and stops the rest of the script from exicuting
as always any and all advice is welcomePHP Code://********BEGIN ERROR HANDLing***********
if((!$bandname) || (!$password) || (!$emailaddy) || (!$bio) || (!$genre) || (!$photo) || (!$song))
if(!$bandname) {
echo "<center><font size='4' color='red'>Band name is needed!</font><center>";
}
if(!$password) {
echo "<center><font size='4' color='red'>Password is needed!</font><center>";
}
if(!$bio) {
echo "<center><font size='4' color='red'>Tell us about yourself!</font><center>";
}
if(!$genre) {
echo "<center><font size='4' color='red'>What type of music do you play!</font><center>";
}
if(!$photo) {
echo "<center><font size='4' color='red'>Gotta have a picture!</font><center>";
}
if(!$song) {
echo "<center><font size='4' color='red'>Music we need music!</font><center>";
}
{
require('bands2.php');
exit();
}
as for the title to this thread i just sometimes wish i would have never started building websites


Reply With Quote

Bookmarks