Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 6 of 6

Thread: PHP Help.

  1. #1
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default PHP Help.

    I am quite good at PHP Normally but this has stumped me.

    PHP Code:
    $tutorial=$_REQUEST['tutorial'];
    $title=$_REQUEST['title'];
    $category=$_REQUEST['category'];
    $desc=$_REQUEST['description']; 
    How would i use the functions stripslashes AND htmlspecialchars on each one?

  2. #2
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    use this..
    PHP Code:
    foreach($_REQUEST as $key=>$val) {
    $
    $key stripslashes(htmlspecialchars($valENT_QUOTES));

    this will work..

  3. #3
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default

    So i just put that in the PHP File?

  4. #4
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    yes instead of the code you used and it will produce the same variables..

  5. #5
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default

    Oh so i actually replace the bit i posted with that?

  6. #6
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    yes. .
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

Posting Permissions

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