Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Location
    North-East, Indiana
    Posts
    417

    [Cookies] Form Buttons

    Ok, I have it set to where the popup comes up, then it sets the cookie... so it doesn't display the popup again...

    however, I want it a different way... not sure on how to do it.

    I need it to set a cookie once I hit the submit button

    My current button is...

    HTML Code:
    <input type=\'submit\' value=\'Yes, I want to vote!\' onclick=\'Modalbox.hide()\' />
    PHP5 / MySQL / CUSTOM TEMPLATING / CLEAN & MAINTAINABLE CODING
    WEB DEVELOPMENT via CUSTOM DESIGN / PROGRAMMING

  2. #2

    Red face

    Hello,
    Let me understand this, you want to get the cookie made once the button gets hit. That means you would definitely have a form that you need posted. What you should do is to put a hidden variable and check it once the form gets submitted check that variable if it got set or not and if it does; have the cookie made.
    Let me know if you understand.
    Regards,
    Maddy

  3. #3
    Join Date
    Jan 2005
    Location
    North-East, Indiana
    Posts
    417
    It's a voting script. If you click yes, it redirects you. If you click no it doesn't closes the box that pops up.

    http://getfreelanced.com/scripts/box

    This is the script... I need it to set the cookie on the button.
    PHP5 / MySQL / CUSTOM TEMPLATING / CLEAN & MAINTAINABLE CODING
    WEB DEVELOPMENT via CUSTOM DESIGN / PROGRAMMING

  4. #4
    Alright, wrote this simple code for you. There is one zip file attached to this post that will solve your problem. Let me know if this helps. If you want the explanation let me know. fileshelp.zip
    Regards,
    Maddy.

Posting Permissions

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