For this:
<form action="/todo/save" method="post">
<input type="text" name="todo" />
<input type="submit" name="submit" value="Save" />
</form>
should redirect to /todo/save?todo=sometext&submit=Save -?
How can I do that?
For this:
<form action="/todo/save" method="post">
<input type="text" name="todo" />
<input type="submit" name="submit" value="Save" />
</form>
should redirect to /todo/save?todo=sometext&submit=Save -?
How can I do that?
You will need to change the method to GET
and add a hidden field for submit:
<form action="/todo/save" method="get">
<input type="text" name="todo" />
<input type="hidden" name="submit" value="Save" />
<input type="submit" value="Save" />
</form>