Jump to content

Recommended Posts

Here is the code
<?php
if ($_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 error
Parse error: parse error, unexpected '/' in /home/freelan4/public_html/cgi-bin/mailinglist/mailinglisthandler.php on line 17

Is 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

[!--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

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.