SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2011
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question cookie validation?

    Hi,

    A validation issue, ive got the cookie working, but now having issues with my basic validation

    <td>Customer ID/td>
    <td><?php echo $_COOKIE['customerid'];?></td>

    Any suggestions on why this wouldn't work

    <?php
    if ($_POST["custID"] =="" || $_POST["custID"] =="Enter your customer ID" || $_POST["custID"] ==$_COOKIE['customerid'] )
    {
    header("Location: orderform.html");
    exit;
    }
    ?>

  2. #2
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would you elaborate little bit as how you are saving $_cookie

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2011
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Standard syntax way (name, value,time) is this what you meant??


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
  •