NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page RD Tell a Friend 1.0

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 04-25-2007, 04:15 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Jul 2005
Location: lebanon
Posts: 2,458
rcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to behold
 




RD Tell a Friend 1.0


Hey guys
i created this nice Tell a Friend script at this link http://ryansdistrict.com/boards/inde...ic,4632.0.html

Please feedback and can you tell me how can i fix the special characters issue ( the ' " )


Regards
__________________
Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer
_____ Email me for fast response ryan [at] ryansdistrict.com

________ My 9000NPs R 4 SALE cheap- Contact me!
rcep is offline  
Old 04-25-2007, 10:59 AM   #2 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children
http://us.php.net/stripslashes
http://us.php.net/addslashes
__________________
ask me about the internet
Jim_ is offline  
Old 05-03-2007, 03:55 AM THREAD STARTER               #3 (permalink)
Senior Member
Join Date: Jul 2005
Location: lebanon
Posts: 2,458
rcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to behold
 




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
__________________
Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer
_____ Email me for fast response ryan [at] ryansdistrict.com

________ My 9000NPs R 4 SALE cheap- Contact me!
Last edited by rcep; 05-03-2007 at 04:03 AM. Reason: dfs
rcep is offline  
Old 05-07-2007, 04:33 AM THREAD STARTER               #4 (permalink)
Senior Member
Join Date: Jul 2005
Location: lebanon
Posts: 2,458
rcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to behold
 




s


\sop
\Plz feedback plz
\I really need your suggestions
__________________
Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer
_____ Email me for fast response ryan [at] ryansdistrict.com

________ My 9000NPs R 4 SALE cheap- Contact me!
rcep is offline  
Old 05-09-2007, 08:57 AM   #5 (permalink)
Account Closed
 
Alex.'s Avatar
Join Date: Nov 2006
Location: Uk
Posts: 601
Alex. is on a distinguished road
 


Ethan Allen Fund Third World Education
This is happening because you have magic quotes enabled on your server. ( http://uk2.php.net/magicquotes )
To fix this use the following:
PHP Code:
<?php require("config.php"); 
????: NamePros.com http://www.namepros.com/programming/320578-rd-tell-a-friend-1-0-a.html
echo 
$header?>

<?php
if (isset($_REQUEST['email']))
  {
  
$email stripslashes($_REQUEST['email']); 
  
$to stripslashes($_REQUEST['to']); 
  
$subject stripslashes($_REQUEST['subject']);
  
$message stripslashes($_REQUEST['message']);
????: NamePros.com http://www.namepros.com/showthread.php?t=320578
  
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"); ?>
Alex. is offline  
Old 05-09-2007, 01:19 PM   #6 (permalink)
Senior Member
 
Eric's Avatar
Join Date: Mar 2005
Posts: 4,948
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
PHP Code:
if (get_magic_quotes_gpc())
????: NamePros.com http://www.namepros.com/showthread.php?t=320578
????: NamePros.com http://www.namepros.com/showthread.php?t=320578
{
    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);

Eric is offline  
Old 05-10-2007, 03:56 AM THREAD STARTER               #7 (permalink)
Senior Member
Join Date: Jul 2005
Location: lebanon
Posts: 2,458
rcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to behold
 




hmm thx guys
does doing manofgames way solve the problem completely ?
cuz the second looks complex
__________________
Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer
_____ Email me for fast response ryan [at] ryansdistrict.com

________ My 9000NPs R 4 SALE cheap- Contact me!
rcep is offline  
Old 05-10-2007, 10:44 AM   #8 (permalink)
Account Closed
 
Alex.'s Avatar
Join Date: Nov 2006
Location: Uk
Posts: 601
Alex. is on a distinguished road
 


Ethan Allen Fund Third World Education
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.
Alex. is offline  
Old 05-11-2007, 12:44 AM THREAD STARTER               #9 (permalink)
Senior Member
Join Date: Jul 2005
Location: lebanon
Posts: 2,458
rcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to behold
 




wooo
So all what i should do is put it in the headers and it will do everything !!! ?

__________________
Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer
_____ Email me for fast response ryan [at] ryansdistrict.com

________ My 9000NPs R 4 SALE cheap- Contact me!
rcep is offline  
Old 05-11-2007, 03:39 AM   #10 (permalink)
Account Closed
 
Alex.'s Avatar
Join Date: Nov 2006
Location: Uk
Posts: 601
Alex. is on a distinguished road
 


Ethan Allen Fund Third World Education
Originally Posted by manofgames
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
Alex. is offline  
Old 05-12-2007, 09:32 AM THREAD STARTER               #11 (permalink)
Senior Member
Join Date: Jul 2005
Location: lebanon
Posts: 2,458
rcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to beholdrcep is a splendid one to behold
 




thx guys that helped
__________________
Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer
_____ Email me for fast response ryan [at] ryansdistrict.com

________ My 9000NPs R 4 SALE cheap- Contact me!
rcep is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:51 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger