Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

mysql include

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

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.