Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    6
    Thanked 0 Times in 0 Posts

    How to make a submit button refresh the page.

    I have a form here: http://practicalcme.com/newPCME/register.html
    At the bottom there is an "add to cart" button.
    I want the button to submit the info and then refresh the same page, so that the info shows up in the mini-cart on the right.
    Can anyone help?

  • #2
    Regular Coder Redcoder's Avatar
    Join Date
    May 2012
    Location
    /dev/null
    Posts
    335
    Thanks
    2
    Thanked 49 Times in 48 Posts
    You should use a scripting Language like PHP, Python or even for that. HTML can't do stuff like proces the form, store cookies or pass variables from one page to another which is needed fo this kind of stuff.

    I'd advise you(that is if you use PHP), you should use PHP session variables which are secure as compared to cookies stored on the client which can be easily manipulated.

    For this kind of job, without the code for the page, we can't direct you along the lines you should be following.

    Or if you want it done by someone else, you can post in the forum to ask someone to do it for you.
    Last edited by Redcoder; 10-19-2012 at 10:04 PM.


  •  

    Posting Permissions

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