Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 19:06
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Recent Tutorial Support
| |-+  Flash GuestBook Support (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis)
| | |-+  "&"
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: "&"  (Read 1397 times)
glenn
Server what's that
*
Posts: 23



View Profile Email
"&"
« on: 12/07/02, 14:36 »

the "&" is killing my guestbook view - (nothing returns in the viewer after the character)

in the guestbook script, there are these strings to comment out (replace) certain characters:

  $Website = eregi_replace("http://", "", $Website);
  $Website = ereg_replace("&[^A-Za-z0-9 \@\.\-\/\'\~\:]", "", $Website);

  $Name = stripslashes($Name);
  $Email = stripslashes($Email);
  $Website = stripslashes($Website);
  $Comments = stripslashes($Comments);

the character "&" is killing my guestbook view when people use it, and i have not been able to comment it out, with attempts like so:

  $Website = eregi_replace("http://", "", $Website);
  $Website = ereg_replace("&[^A-Za-z0-9 \@\.\-\/\'\~\:]", "", $Website);
*$Comments = eregi_replace("&", "", $Comments);

  $Name = stripslashes($Name);
  $Email = stripslashes($Email);
  $Website = stripslashes($Website);
  $Comments = stripslashes($Comments);

can someone help?
Logged
BurtonRider1983
Global Moderator
Systems Administrator
*****
Posts: 864

Rider-4-Life

BurtonRider1983
View Profile WWW
« Reply #1 on: 12/16/02, 15:46 »

Well, you are looking at changing it through php.  Here is another easy fix, if for some odd reason you lines of php fail to rem the amperstand out then just open your fla.....just go to the input textboxes and in the embedded font outline....just block out the amperstand.  That should be really easy and work for you no problem.  Now unfortunately all of the amperstands and symbols that have passed by and are entered into your guestbook already must be removed manually.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!