CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Safety in php

  1. #1
    Join Date
    Feb 2010
    Posts
    3

    Safety in php

    HI, I whant to use a php form on my site. Is there any way to to validate and ban data coming from insecure sources?

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Safety in php

    In the form processing, check for the HTTPS predefined variable.

    PHP Code:
    if ($_SERVER['HTTPS'] == 'on') {/*...*/
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured