User Profile

Collapse

Profile Sidebar

Collapse
dgriff80
dgriff80
Last Activity: Jul 26 '09, 01:22 AM
Joined: Jul 6 '09
Location: Missouri
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dgriff80
    replied to strip html but keep ' & ""
    in PHP
    Thanks, I'll give it a shot!
    See more | Go to post

    Leave a comment:


  • dgriff80
    replied to strip html but keep ' & ""
    in PHP
    I am just emailing the content of the input box, nothing needs to really be stored from these. I tried intgrating your pregreplace and i got an error saying that ? was an unknown variable... I don't really know what to do for troubleshooting though.

    You however did finally make the stripslashes and addslashes make sense... so it adds slashes for certain types of data whereas in others you just want raw data. SO thanks!
    ...
    See more | Go to post

    Leave a comment:


  • dgriff80
    started a topic strip html but keep ' & ""
    in PHP

    strip html but keep ' & ""

    hello all!

    I am using a form that a user can fill out but for security reasons I want html stripped out. If the user inputs html, I want it to kick back saying something to the fact that it had html removed. What I have works just fine with one exception, I want people to be able to use

    Code:
    <?php
    $RemarksPure = Trim(stripslashes($_POST['remarks']));
    $Remarks = addslashes(preg_replace('#</?\w[^>]*>#',
    ...
    See more | Go to post
No activity results to display
Show More
Working...