Changes between Version 12 and Version 13 of FaqTips

Show
Ignore:
Timestamp:
02/18/10 21:36:15 (7 months ago)
Author:
armin (IP: 79.16.164.203)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FaqTips

    v12 v13  
    44 
    55== Clean URL's when using config paramaters == 
     6 
     7=== Using Apache rewrite mechanisms === 
    68If you want to launch the application with different configuration settings like 
    79{{{ 
     
    3537http://your-address/pmapper?config=map2 
    3638}}} 
     39 
     40 
     41=== Using POST method from an HTML form === 
     42An 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 
     61The 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. 
    3762 
    3863