W
Wet Basement
I am passing data to a putcart.pl , parsing it, then building the query
string to put the item in the shopping cart:
$cartStr =
http://www.domain.com/cgi-bin/cart.pl?name=Book+Title&Stk=D123456&price=5.00
$co = new CGI;
print $co->redirect($cartStr);
print $co->start_html;
$co->end_html;
This works fine except that I need to pass book titles with "&" ( Bears &
Cows ==> Bears+&+Cows ===> does NOT work) and &Stk needs to be "# D123456"
(&Stk=#+D123456 ===> does NOT work) . It bombs when I try to pass "&" or
"#" in the query string.
1) Is there any way I can redirect or call a perl script from another perl
script using "POST" so I do not have to deal with the & or # mess (or the +
signs for spaces).
2) If #1 is No, How do I pass "&" and "#" in a header query string. I
could not make %26 work for & and found no % equivalent for #.
Thanks so much.
Lynn
(e-mail address removed)
string to put the item in the shopping cart:
$cartStr =
http://www.domain.com/cgi-bin/cart.pl?name=Book+Title&Stk=D123456&price=5.00
$co = new CGI;
print $co->redirect($cartStr);
print $co->start_html;
$co->end_html;
This works fine except that I need to pass book titles with "&" ( Bears &
Cows ==> Bears+&+Cows ===> does NOT work) and &Stk needs to be "# D123456"
(&Stk=#+D123456 ===> does NOT work) . It bombs when I try to pass "&" or
"#" in the query string.
1) Is there any way I can redirect or call a perl script from another perl
script using "POST" so I do not have to deal with the & or # mess (or the +
signs for spaces).
2) If #1 is No, How do I pass "&" and "#" in a header query string. I
could not make %26 work for & and found no % equivalent for #.
Thanks so much.
Lynn
(e-mail address removed)