]> granicus.if.org Git - php/commitdiff
match changes to Tomcat example
authorSam Ruby <rubys@php.net>
Thu, 13 Apr 2000 19:02:40 +0000 (19:02 +0000)
committerSam Ruby <rubys@php.net>
Thu, 13 Apr 2000 19:02:40 +0000 (19:02 +0000)
sapi/servlet/servlet.java
sapi/servlet/sessions.php

index bc91aa72e20a6bc4db2fc35ad199da7007717dec..cb2202d250f179ca4e3cb5d27b2c2b4927073426 100644 (file)
@@ -155,6 +155,8 @@ public class servlet extends HttpServlet {
        String servletPath=request.getServletPath();
        String contextPath=getServletContext().getRealPath(servletPath);
 
+System.out.println("queryString => " + request.getQueryString());
+
        send(request.getMethod(), request.getQueryString(),
             request.getPathInfo(), contextPath,
             request.getContentType(), request.getContentLength(),
index f4bbefbb02284381f3cdfd3bb10e736b5ad676ee..463b1b5e920bd0a5d28b5b308108e2a2b9a402dc 100644 (file)
@@ -43,6 +43,17 @@ Value of Session Attribute:
 <br>
 <input type=submit>
 </form>
+<P>GET based form:<br>
+<form action="<?php echo $PHP_SELF ?>" method=GET>
+Name of Session Attribute:
+<input type=text size=20 name=dataName>
+<br>
+Value of Session Attribute:
+<input type=text size=20 name=dataValue>
+<br>
+<input type=submit>
+</form>
+<p><a href="<?php echo $PHP_SELF ?>?dataName=foo&dataValue=bar" >URL encoded </a>
 </body>
 </html>
 </body>