Re: cgi session cart need help

2007-10-03 Thread vipmailnow
Tom , thanks for you analysis for me. >I hope you're keeping your product data and prices in a database, with >this merely being example code. Dear Tom , yes you are correct. i am playing it for the test. the final one will keep in mysql db. the whole working code is picup from http://search.cpa

Re: cgi session cart need help

2007-10-03 Thread vipmailnow
now i figure out a way to push new value which is not originally existed in the array at the end of loop. my $idx = 0; for my $product ( @{$cart} ) { $idx= ($idx+1); $idxx=($idx-1); $product->{itemID} == $itemID or next; $finalidx=$idx;

Re: cgi session cart need help

2007-10-03 Thread vipmailnow
For Determine whether a hash value exists, i googled the internet. and found print "Value EXISTS, but may be undefined.\n" if exists $hash{ $key }; so i have a test by below code while it seems i can not get the expeacted result. (all result is value is non existed.) print "Value EXISTS, but m

Re: cgi session cart need help

2007-10-02 Thread Tom Phoenix
On 10/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i am using cgi session to write a cart . > here is the partial code. If you only send part of your code, ideally you should send a part which can run on its own. That is, make a small stand-alone program which shows the problem you're hav

RE: CGI::Session wierd

2005-06-14 Thread Cristi Ocolisan
Yes, I rebuild it & reinstalled it. Still not working... CO -Original Message- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: 14 iunie 2005 14:54 To: Cristi Ocolisan Cc: Perl Beginners List Subject: Re: CGI::Session wierd On Tue, 14 Jun 2005, Cristi Ocolisan wrote: > Does

Re: CGI::Session wierd

2005-06-14 Thread Chris Devers
On Tue, 14 Jun 2005, Cristi Ocolisan wrote: > Does anyone know problems between CGI::Session (version 3.95) and perl > 5.8.4? Have you tried rebuilding & reinstalling CGI::Session? -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

RE: CGI::Session

2005-01-16 Thread Michael Kraus
G'day... > I would like to use a session mechanism that allows to store > some hashes in a MySQL database, but also allow storing some > other visitor preferences like the font style, colors, font > sizes, the language, etc. > > Do you know if CGI::Session allows storing some more values > in

Re: CGI::Session

2005-01-16 Thread Joe Mecklin
i don't know if there are modules or functions that would do it all bhind the scenes, but at the "worst", just write everything you want to store to variables and write them in a standard mysql "insert" query. you may want to "use CGI qw(:all)" rather than limit yourself to CGI::Session (that's fr

Re: CGI::Session param help

2003-10-24 Thread perl
Thanks, I was reading the doc on the cpan site and it wasn't so obvious. But the perldoc CGI::Session showed how to delete so obviously. That's after I figured out how to use perldoc to get to Session. Again, thanks for the patient. > On Oct 24, [EMAIL PROTECTED] said: > >>Can someone tell me h

Re: CGI::Session param help

2003-10-24 Thread Jeff 'japhy' Pinyan
On Oct 24, [EMAIL PROTECTED] said: >Can someone tell me how to delete a parameter in $session->param("BOGUS") >that was set? $session->delete("BOGUS"); Read 'perldoc CGI' for more details. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734

Re: cgi session

2002-12-06 Thread LRMK
dont usehtml file for http://www.mydomain.com/welcome.html use a cgi like http://www.mydomain.com/welcome.pl when u passing user to the page don't just redirect load that page using automated form submit so you can pass the password and username to that page too and validate there if it is wrong r

Re: cgi session

2002-12-06 Thread LRMK
dont usehtml file for http://www.mydomain.com/welcome.html use a cgi like http://www.mydomain.com/welcome.pl when u passing user to the page don't just redirect load that page using automated form submit so you can pass the password and username to that page too and validate there if it is wrong