in reply to Re: storing radio button value and presetting after refresh
in thread storing radio button value and presetting after refresh

thank you so much for taking the effort and clearing out the mistakes. I have found out my error by searching through the forum and others. there is some issue with the form action tag in my html. It does not send the data to the .cgi script. Is there any modifications that i need to do to make it work? I did go through answers that said look into the httpd.conf file, and move the cgi file to cgi-bin folder. I tried them but to no avail. Also I do not have root access. So can you help me out along those lines?
  • Comment on Re^2: storing radio button value and presetting after refresh

Replies are listed 'Best First'.
Re^3: storing radio button value and presetting after refresh
by Anonymous Monk on Jul 31, 2013 at 12:15 UTC
    It works for me if you fix the submit button:
    <input type='button' type='submit' value='Save'/> # change to <input type='submit' value='Save'/>
Re^3: storing radio button value and presetting after refresh
by marinersk (Priest) on Jul 31, 2013 at 14:11 UTC
    There is no short answer to the issue of where the CGI script needs to go and how to reference it from the HTML form.

    Usually this information is available from your web hosting provider.

    If you are not using a web hosting provider in the vulgar sense, but using, say, some system at work, check with your system administrator for the following:

    • Where the CGI directory is located
    • How to get a CGI script into the CGI directory
    • How to set permissions on the CGI script so it will execute when referenced by an HTML page
    • What is the qualified path to that directory from the web site you are using (in other words, how do you specify the value for the ACTION parameter)

    Good luck -- you are very close to getting stage one complete (reading the form).

    If I am reading your intentions correctly, you will have new challenges to overcome for the part where you'd like to preserve the state for the next page hit -- but one thing at a time. :-)