| | 39 | |
| | 40 | |
| | 41 | === Using POST method from an HTML form === |
| | 42 | An alternative approach is to use an HTML form with POST as submit method, like |
| | 43 | {{{ |
| | 44 | <html> |
| | 45 | <head> |
| | 46 | <title>p.mapper - start application with different config files</title> |
| | 47 | </head> |
| | 48 | <body> |
| | 49 | <h2> Examples how to start the application from a form with different config files</h2> |
| | 50 | <form method="POST" action="map.phtml"> |
| | 51 | <!-- using config_default.xml --> |
| | 52 | <input type="radio" name="config" value="default" onclick="submit()">Default</input><p> |
| | 53 | |
| | 54 | <!-- using config_dev.xml --> |
| | 55 | <input type="radio" name="config" value="dev" onclick="submit()">Development</input><p> |
| | 56 | </form> |
| | 57 | </body> |
| | 58 | </html> |
| | 59 | }}} |
| | 60 | |
| | 61 | The disadvantage, however, of this approach is that the URL that appears in the browser address Window is always the same. So this method does nor work from direct URL links inserted in the browser address bar, it absolutely requires being launched via an HTML form. |