Help about Input Validation www*.com/org/info/net

Discussion in 'PHP' started by geekos, May 2, 2008.

  1. #1
    geekos, May 2, 2008 IP
  2. saurabhj

    saurabhj Banned

    Messages:
    3,459
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #2
    saurabhj, May 2, 2008 IP
    geekos likes this.
  3. geekos

    geekos Well-Known Member

    Messages:
    3,365
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Thank you very for the fast reply :)
    but the script dont work if i use a post method :(

    EDIT: Its working now :) Thank You very much!


    <form name="form1" onSubmit="return checkDomain(form1.Link.value)" method="post" action="process.php">
       Link
      <input name="Link" type="text" id="Link2">
      <input type="submit" name="Submit" value="Add">
      <img src="CaptchaSecurityImages.php" />
    Security Code: 
    <input id="security_code" name="security_code" type="text" />
    </form>
    Code (markup):
     
    geekos, May 2, 2008 IP
  4. lanmonkey

    lanmonkey Active Member

    Messages:
    549
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #4
    javascript is a client side script. therefore the validaiton is done on the users browser. This should never be trusted, perform additional user input validation in php, get the regex for a domain name from here http://regexlib.com/ and do an ereg in php.
     
    lanmonkey, May 2, 2008 IP