I wrote scripts for 1 ajax form element. I put the php script in the cgi-bin folder. I put the form and the javascript on the apache index page.

I use firefox with the noscript add on, so javascript is disabled when the page first renders. I have to tell the noscript add on to allow javascript. I assume many other people will do this too, so I want to learn to code around noscript.

The form itself renders (looks) just fine without javascript enabled, but ajax does not work and the php script I wrote for ajax and a few other things render as links until I enable javascript. These links are next to the form elements.

Ajax doesn't work yet even with javascript enabled, but that's another issue.

I want to code with the assumption that users will first see this page with javascript disabled. I want to tell them to enable it with the <noscript> tag, without showing them these links (that right now render until javascript is enabled).

Does anyone know why the links render and how to prevent them from doing this even when javascript is turned off?

One of the links is mysite.com/POST

Another is mysite.com/application/x-www-form-urlencoded.

Thank you

    a better approach is to allow normal (non-js) form submission if js is disabled:

    <form action="submit.php" method="post">
       <input name="someinput">
       <label><input type="checkbox" name="check"> check the box!</label>
       <noscript>
          <input type="submit" value="Submit">
       </noscript>
    </form>
      Write a Reply...