[Klone-users] GET/POST confused methods
Mickael Auger
mickael.auger at gmail.com
Thu Apr 10 02:56:14 EDT 2008
Hi Thomas,
Sorry for my previous message I haven't seen the subjet in other archives.
All patches must be available on your Web site.
I use a standard linux for my test.
My new question concerns the GET and POST methods. Their reunion does not
distinguish them when they are used at the same time.
The next example (named index.kl1) shows this problem :
<%!
char* valeur = NULL;
%>
<html>
<body>
<p>
<form method="POST" action="index.kl1?vala=getvara&valb=getvarb">
<input type="hidden" name="vara" value="postvara" />
<input type="hidden" name="varb" value="postvarb" />
<input type="submit" value="Send" name="send" />
</form>
</p>
<%
valeur = request_get_arg(request, "send");
if(valeur != NULL)
{
io_printf(out, "<p>Used method : %i</p>",
request_get_method(request));
io_printf(out, "<p>Receive values :<ul><li>vara : %s</li><li>varb :
%s</li></ul></p>", request_get_arg(request, "vara"),
request_get_arg(request, "varb"));
}
%>
</body>
</html>
For this example the used method is "HM_POST", "vara = getvara" and "varb =
getvarb". The POST values are forgotten.
My method is correct ?
Can I use the GET and POST value at the same time ?
How to dodge this problem ?
Thanks.
--
Mickaël AUGER
mickael.auger at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20080410/4edeedd1/attachment.htm
More information about the klone-users
mailing list