[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Problem accessing CGI QUERY_STRING
****** message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net> ******
Garey Hoffman wrote:
>
> ****** message to minivend-users from Garey Hoffman <ghoffman@sumaato.com> ******
>
> I can't seem to find the right way to access the CGI QUERY_STRING. I searched
> the minivend mail archives but cam up empty-handed. Based on what I know of
> minivend, I thought the following code would print out the query_string to the
> page but it doesn't:
>
> [perl]
> my $myurl$CGI::query_string;
> $myurl .= '<BR>';
> $myrul;
> [/perl]
>
> What am I doing wrong? Is there another way to access the CGI QUERY_STRING?
>
> TIA.
>
> ---Garey
I use CGI QUERY_STRING often. Maybe my explanation can help you.
Transfer any data via post methode. For example,
------snipp datatransfer.html--------
<FORM ACTION="http://__SERVER_NAME____CGI_URL__/out?[data session id]"
METHOD="POST">
<INPUT TYPE="text" NAME="name" VALUE="[value name]" size=40>
<INPUT TYPE="text" NAME="age" VALUE="[value age]" size=40>
.
.
<INPUT TYPE=hidden NAME="mv_session_id" VALUE="[data session id]">
<input type="submit" Name=mv_todo VALUE="Senden">
</FORM>
------snipp datatransfer.html--------
------snipp out.html--------<without any html tags ...>
[perl arg="cgi scratch"]
$Safe{'scratch'}->{"name"} = $Safe{'cgi'}->{"name"};
$Safe{'scratch'}->{"mv_session_id"} =
$Safe{'cgi'}->{"mv_session_id"};
$Safe{'scratch'}->{"age"} = $Safe{'cgi'}->{"age"};
etc.....
"";
[/perl]
[tag op=header interpolate=1]
Status: 302 moved
Content-type: text/html
Location: [area href="test.html"]
[/tag][set mv_no_cache]1[/set]
------snipp out.html--------
<HTML>
<HEAD>
.
.
etc.
Test! Success or not?
Name: [scratch name]<BR>
etc..
------snipp test.html--------
In some cases, i get no success, if i have changed my codes (adding new
variable). Removing the session db file solve it. Good luck!
Regards,
Joachim
--
-------------Hans-Joachim Leidinger---------------------
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list