Jump to content

What in the World?


TheAffinity

Recommended Posts

Hi there,

 

I am relatively new to PHP and am using it to create a script that will get a user's name and email and send out an email to that person (via the specified email).

 

Take a look at www.seduceadwords.com  In the bottom left corner of the left menu, go ahead and leave it blank and hit "Email my Friend".  You'll see error messages appear and the page reloads itself.

 

Now if you enter names and emails you'll see that the page reloads BUT not completely...  What the heck?  (The email does get sent out though.)  I can't for the life of me figure out what's going on.

 

The header for the form is as follows:

 

--------------

 

echo "<form method=\"POST\" action=\"", htmlspecialchars(strip_tags($_SERVER['PHP_SELF']), ENT_QUOTES), "?google=", $cow, "\">";

echo '<!-- fieldset><legend>Email this Site to a Friend:</legend -->';

echo "<table>";

echo "<tr>";

...

 

</form>

 

-----

 

Any ideas what I should look into?  Any help would be greatly appreciate, thanks!

Link to comment
https://forums.phpfreaks.com/topic/64859-what-in-the-world/
Share on other sites

echo "<form method=\"POST\" action=\"" . htmlspecialchars(strip_tags($_SERVER['PHP_SELF']), ENT_QUOTES) . "?google=" . $cow . "\">";
echo '<!-- fieldset><legend>Email this Site to a Friend:</legend -->';
echo "<table>";
echo "<tr>";
</form>

 

Don't enclose functions like that!

Link to comment
https://forums.phpfreaks.com/topic/64859-what-in-the-world/#findComment-323619
Share on other sites

echo "<form method=\"POST\" action=\"" . htmlspecialchars(strip_tags($_SERVER['PHP_SELF']), ENT_QUOTES) . "?google=" . $cow . "\">";
echo '<!-- fieldset><legend>Email this Site to a Friend:</legend -->';
echo "<table>";
echo "<tr>";
</form>

 

Don't enclose functions like that!

 

Can you elaborate?

Link to comment
https://forums.phpfreaks.com/topic/64859-what-in-the-world/#findComment-323650
Share on other sites

Archived

This topic is now archived and is 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.