Jump to content

Anyone have experience with coding forms?


Cam the Ram

Recommended Posts

My Grandmother had a fall over Christmas and broke her arm so it put a bit of a strain on my University studies as I had to devote most of my attention to her. So now I'm in a bit of a rush to get this work done and out the way but I'm struggling with getting my functions to work on my form. Any chance there's some smart ar*e on here who would be willing to help?

Link to comment
Share on other sites

  • Replies 8
  • Created
  • Last Reply
36 minutes ago, eddie said:

Are we talking Excel forms or HTML (or another vehicle?)

 

This particular one involves using JavaScript for the form, sending the results to a PHP page and then they send the results to be shown within a database. It's the JavaScript functions I'm having a few problems with, like this:

function runner() {
var runner = document.getElementById('RunnerID').value;
if (runner.length == 0) {
return false;
alert("Please fill in mandatory fieldes");
}
else {
return "";
}
}

 

That just does nothing for me when I click submit on the form.

Link to comment
Share on other sites

Most of those errors are with the formatting. If you move the expected locations then it validates better, but still leaves you with a few errors.

Quote

function document() {
    "use strict";
    var runner = document.getElementById('RunnerID').value;
    if (runner.length === 0) {
        return false;
alert("Please fill in mandatory fieldes");
    }
else {
            return "";
        }
}

 

Link to comment
Share on other sites

9 minutes ago, StivePesley said:

Most of those errors are with the formatting. If you move the expected locations then it validates better, but still leaves you with a few errors.

 

Thank you for the help mate, much appreciated. And I've just noticed I managed to misspell fields .... I'm not with it today. :lol:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...