SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard WorldNews's Avatar
    Join Date
    Nov 2007
    Posts
    1,027
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How does one address someone entering a crazy long string from breaking the page

    Hello,

    In a Php generated page, how do you suggest that one should address the problem of users entering long strings, in a rather crazy fashion, from breaking the proper look (width) of the page?

    For example take a look at this page:
    http://www.dreamdates.com/new2/profile.php?mem=30

    As you see in this example the user has entered very long (crazy) strings such as:
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    which have caused the page to go beyond its intended width and look bad.

    ThanX,

    P.S., This site is currently under development and still not live for public use.

    Anoox search engine volunteer

    www.anoox.com

  2. #2
    SitePoint Guru bronze trophy TheRaptor's Avatar
    Join Date
    Jul 2011
    Location
    New York
    Posts
    710
    Mentioned
    40 Post(s)
    Tagged
    0 Thread(s)
    All I see in the example is this:
    Notice: Undefined index: dd_user in /var/www/html/dreamdates.com/new2/profile.php on line 45
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

  3. #3
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)

  4. #4
    SitePoint Wizard WorldNews's Avatar
    Join Date
    Nov 2007
    Posts
    1,027
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Sorry, that error has been fixed.
    It was due to having added code without taking into account that non-members can also access this page.
    So you are good to chck out this page now
    ThanX.

    Quote Originally Posted by TheRaptor View Post
    All I see in the example is this:

    Anoox search engine volunteer

    www.anoox.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •