Date: 11/04/99
- Next message: Andries J. Algera: "[PHPLIB] How to use cart as user variable instead of sess variable"
- Previous message: Howie Oakes: "RE: [PHPLIB] header problems in session.inc (only in 7.2)"
- Next in thread: Christopher S. Weimann: "Re: [PHPLIB] HTTP_POST_VARS blank first time"
- Reply: Christopher S. Weimann: "Re: [PHPLIB] HTTP_POST_VARS blank first time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am using phplibs cart and am having an odd problem.
The user submits the following form.
<FORM ACTION="/addcart.php3" METHOD=post>
<INPUT TYPE=hidden name=itemnum value="366">
<INPUT TYPE=hidden name="ReturnTo" VALUE="/catalog.htm">
<INPUT TYPE=text NAME="qty" VALUE=1 SIZE=3>
<INPUT TYPE=submit VALUE="Add to cart">
</FORM>
The problem is that none of the posted fields make it through
the first time. If the form is submited again everything is
fine and it works from then on.
It looks to me like when session.inc redirects the form the post
data is lost. Is a post supposed to make it through a redirect?
rfc2068 makes it look like a HTTP 1.1 should do this properly.
I will eventually need the form to be on a different site than
the php script so the users session can't be created until the
first time this form is submitted.
Any ideas?
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Andries J. Algera: "[PHPLIB] How to use cart as user variable instead of sess variable"
- Previous message: Howie Oakes: "RE: [PHPLIB] header problems in session.inc (only in 7.2)"
- Next in thread: Christopher S. Weimann: "Re: [PHPLIB] HTTP_POST_VARS blank first time"
- Reply: Christopher S. Weimann: "Re: [PHPLIB] HTTP_POST_VARS blank first time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

