Ninjakreborn Posted May 26, 2006 Share Posted May 26, 2006 Here is the code<?phpif ($_POST['emailaddress'] == "") {print('I am sorry please go back and fill in the email address field properly');}elseif ($_POST['firstname'] == "") {print('I am sorry please go back and fill in the first name correctly');}elseif ($_POST['lastname'] == "") {print('I am sorry please go back and fill in the last name correctly');}else {return true;include(/home/freelan4/public_html/cgi-bin/mailinglist/dbconnector.php);}?>here is there errorParse error: parse error, unexpected '/' in /home/freelan4/public_html/cgi-bin/mailinglist/mailinglisthandler.php on line 17Is this the proper way I am wanting to validate it, and if it properly validates then send it over the the file to work on setting up the database connection, and start getting it to enter the information there. Link to comment https://forums.phpfreaks.com/topic/10539-mysql-include/ Share on other sites More sharing options...
fenway Posted May 26, 2006 Share Posted May 26, 2006 And this is a MySQL-related question how? AFAIK, you need to pass a string literal to the include() function, hence the parsing error in PHP. Link to comment https://forums.phpfreaks.com/topic/10539-mysql-include/#findComment-39306 Share on other sites More sharing options...
Ninjakreborn Posted May 26, 2006 Author Share Posted May 26, 2006 I did not intend to post here so I reposted in php, It was an accident. Link to comment https://forums.phpfreaks.com/topic/10539-mysql-include/#findComment-39307 Share on other sites More sharing options...
AndyB Posted May 26, 2006 Share Posted May 26, 2006 [!--quoteo(post=377425:date=May 26 2006, 05:56 PM:name=businessman332211)--][div class=\'quotetop\']QUOTE(businessman332211 @ May 26 2006, 05:56 PM) [snapback]377425[/snapback][/div][div class=\'quotemain\'][!--quotec--]I did not intend to post here so I reposted in php, It was an accident.[/quote]Closing this thread. Link to comment https://forums.phpfreaks.com/topic/10539-mysql-include/#findComment-39322 Share on other sites More sharing options...
Recommended Posts