Explore BrainMass
Share

Explore BrainMass

    Adding a cookie

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    In PHP and Javascript, when the given function has verified that all of the required field have been filled, a cookie is added to the user's computer. If the same user attempts to fill out the form a second time, the user will be directed to a separate HTML page advising them that they have already submitted the form.

    © BrainMass Inc. brainmass.com October 10, 2019, 2:37 am ad1c9bdddf
    https://brainmass.com/computer-science/php/adding-cookie-385689

    Solution Preview

    This can be done very easily using php script.

    For this you need to save your current .html page (my_contact_info_checked.hmtl) to .php page (my_contact_info_checked.php) and add the attached php code in the file (cookie script.txt) ,above the html tag in your web page (my_contact_info_checked.php).

    To run and execute the php page on your local computer, you need to have the apache server installed. If you don't have that, then ...

    Solution Summary

    Adding a cookie to a form in PHP and Javascript.

    $2.19