Description: <HTML><HEAD> <TITLE>Argument MSP Test</TITLE><%=$html_utils:nav_links(this:www_nav_links())%></HEAD><%=this.header%><H3>All the arguments being passed to a web page.</H3><OL><LI>The first element is the object number.<BR>The <I>this</I> variable is <B><%=this%></B>.<LI>Next we have any additional non-CGI arguments.<BR>The <I>prepstr</I> variable is <B>"<%=prepstr%>"</B>.<LI>The last part of the URL is the CGI 'get' type arguments.<BR>The <I>dobjstr</I> variable is <B>"<%=dobjstr%>"</B>.<BR>The <I>dobj</I> variable <B><%=toliteral(dobj)%></B>.<LI>Finally there are the 'post' type arguments which are the result of many forms.<BR>The <I>iobjstr</I> variable is <B>"<%=iobjstr%>"</B>.<BR>The <I>iobj</I> variable <B><%=toliteral(iobj)%></B>.</OL>One rarely needs to access dobjstr/dobj/iobjstr/iobj directly. <I>$www:parse_GET(<name>)</I> and <I>$www:parse_POST(<name>)</I> are the easiest ways to retrieve 'get' and 'post' data. See the other MSP demo pages for examples.<P>Here are three URLs to try:<TABLE BORDER=1><TR><TD>A hard-coded URL: <A HREF="/<%=toint(this)%>/abc/def?age=24&name=John%20Doe">/<%=toint(this)%>/abc/def?age=24&name=John%20Doe</A></TD></TR><TR><TD>A 'get' type form:<FORM METHOD="get" ACTION="/<%=toint(this)%>"> <INPUT TYPE="text" NAME="TextBox"> <INPUT TYPE="checkbox" NAME="CheckBox"> <INPUT TYPE="submit"></FORM></TD></TR><TR><TD>A 'post' type form:<FORM METHOD="post" ACTION="/<%=toint(this)%>"> <INPUT TYPE="text" NAME="TextBox"> <INPUT TYPE="checkbox" NAME="CheckBox"> <INPUT TYPE="submit"></FORM></TD></TR></TABLE><P><%=this:viewsourcelink()%><%=this.footer%><% this:tell_www_tail(@args); %></BODY></HTML><!-- Last modified by Dax (#789) on Mon Oct 22 14:54:30 2001 MDT. --> |