Unstoppable Domains โ€” AI Assistant

RD Tell a Friend 1.0

Spaceship Spaceship
Watch
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
•••
ads

well what i want is allow users to add ' and not me writing them
i mean in forms so that they don't cause any errors i hope u got my point
plz help
Please guys feedback too ;)
 
Last edited:
0
•••
s

\sop
\Plz feedback plz
\I really need your suggestions
 
0
•••
This is happening because you have magic quotes enabled on your server. ( http://uk2.php.net/magicquotes )
To fix this use the following:
PHP:
<?php require("config.php"); 
echo $header?>

<?php
if (isset($_REQUEST['email']))
  {
  $email = stripslashes($_REQUEST['email']); 
  $to = stripslashes($_REQUEST['to']); 
  $subject = stripslashes($_REQUEST['subject']);
  $message = stripslashes($_REQUEST['message']);
  mail( "$to", "$subject", "$urmessage2.'<br/>'.$message ", "$email" );
  echo $sent;
  }
else
  {
  echo "<form method='post' action='tell a friend.php'>".
$youremail."<input name='email' type='text' /><br />".
$email2." <input name='to' type='text' /><br />".
$urmessage."<br />
  <textarea name='message' rows='10' cols='40'>
  </textarea><br />

<br>  <input type='submit' value='Send Invitation to your friend'/>
  </form>";
  }
?>

</html><?php require("footer.php"); ?>
 
0
•••
PHP:
if (get_magic_quotes_gpc())
{
	function stripslashes_deep(&$array)
	{
		if (is_array($array))
		{
			foreach ($array AS $key => $val)
			{
				if (is_string($val))
				{
					$array["$key"] = stripslashes($val);
				}
				else if (is_array($val))
				{
					stripslashes_deep($array["$key"]);
				}
			}
		}
	}
	stripslashes_deep($_REQUEST);
	stripslashes_deep($_POST);
	stripslashes_deep($_GET);
	stripslashes_deep($_COOKIE);
}
B-)
 
0
•••
hmm thx guys
does doing manofgames way solve the problem completely ?
cuz the second looks complex :)
 
0
•••
for second versions code, just plonk it at the very top of the guestbook page, and it'l sort it all without touching anything else.

His code is better then mine.
 
0
•••
wooo
So all what i should do is put it in the headers and it will do everything !!! ?

:)
 
0
•••
manofgames said:
for second versions code, just plonk it at the very top of the guestbook page, and it'll sort it all out without touching anything else.

yes
 
0
•••
thx guys that helped ;)
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back