June 2017
Intermediate to advanced
873 pages
18h 9m
English
The default action for a submit button on a web page that contains an HTML form is to post all the form data to the server on which the application runs. What if we don't want this to happen?
Experiment with the submit application by performing the following steps:
submit.html contains the following code:<form id="form1" action="http://www.dartlang.org" method="POST"> <label>Job:<input type="text" name="Job" size="75"></input> </label> <input type="submit" value="Job Search"> </form>
Comment out all the code in submit.dart. Run the app, enter a job name, and click on the Job Search submit button; the Dart site appears.
submit.dartRead now
Unlock full access