Re: Simple form with picture upload

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63586
interpreted = N
texte = [cart] will generate a new cart value each time you use [cart]... so you cannot use it like you have as it does not get passed around but generated on each use. Best to Create the cart once in a variable first: [text]var_cart=[cart][/text] then pass it between forms as the variable. now you can use 'var_cart' where ever you need to use THAT cart value for storing an order or a new item etc in a database. NOTE... I'm passing 'var_cart' in a form so the form variable is 'form_cart'... this is so you know where the cart value comes from - and so you can also use 'var_cart' again on the same page as a fresh cart value. -- Regards, Marko On Sunday, 11 December 2005 11:18 PM, paul@ast.jagrove.com wrote: Thanks, I found the scripts, one problem, I cannot seem to pass the cart variable
Thsi ignores the cart and allocates a new cart, if I remove the ENCTYPE="multipart/form-data" the carts passed but the form doesnt work, if I add?cart=[cart] still ignores the old cart value I am sooo tired cant think straigh, any ideas Thanks Paul ----- Original Message ----- From: "Donovan Brooke" To: "WebDNA Talk" Sent: Saturday, December 10, 2005 11:08 PM Subject: Re: Simple form with picture upload > Hi Paul, > A gent (that used to post here quite often :-) ) > by the name of Alain Russel (SP?) has a good http upload > snippet at http://www.webdnadev.net/ > > Try that as a starting place. > > Cheers, > Donovan > > > > > paul wrote: > > > Hi > > > > I have a free adverts site where you can place and add in a category, > > nothing special but simple > > > > I want to add the option of adding a picture, the storebuilder options are > > too complicated, I would like to do this on just one form and ensure the > > picture is either a jpg or gif file > > > > Anyone have a little snippet or starting point > > > > ZThanks > > Paul > > > > -- > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > DONOVAN D. BROOKE EUCA Design Center > > <- Web Development (specializing in eCommerce),-> > <- Custom Paint, Labels, and Specialty Signage. -> > <- Home and Business Embellishment/Fabrication, -> > <- Glass Blowing, and Art Glass -> > > PH/FAX:> 1 (608) 835-2476 > Web:> http://www.egg.bz | http://www.euca.us > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Simple form with picture upload ( Marko Bernyk 2005)
  2. Re: Simple form with picture upload ( Stuart Tremain 2005)
  3. Re: Simple form with picture upload ( "paul" 2005)
  4. Re: Simple form with picture upload ( Gary Krockover 2005)
  5. Re: Simple form with picture upload ( Donovan Brooke 2005)
  6. Re: Simple form with picture upload ( "paul" 2005)
[cart] will generate a new cart value each time you use [cart]... so you cannot use it like you have as it does not get passed around but generated on each use. Best to Create the cart once in a variable first: [text]var_cart=[cart][/text] then pass it between forms as the variable. now you can use 'var_cart' where ever you need to use THAT cart value for storing an order or a new item etc in a database. NOTE... I'm passing 'var_cart' in a form so the form variable is 'form_cart'... this is so you know where the cart value comes from - and so you can also use 'var_cart' again on the same page as a fresh cart value. -- Regards, Marko On Sunday, 11 December 2005 11:18 PM, paul@ast.jagrove.com wrote: Thanks, I found the scripts, one problem, I cannot seem to pass the cart variable [cart]"> Thsi ignores the cart and allocates a new cart, if I remove the ENCTYPE="multipart/form-data" the carts passed but the form doesnt work, if I add?cart=[cart] still ignores the old cart value I am sooo tired cant think straigh, any ideas Thanks Paul ----- Original Message ----- From: "Donovan Brooke" To: "WebDNA Talk" Sent: Saturday, December 10, 2005 11:08 PM Subject: Re: Simple form with picture upload > Hi Paul, > A gent (that used to post here quite often :-) ) > by the name of Alain Russel (SP?) has a good http upload > snippet at http://www.webdnadev.net/ > > Try that as a starting place. > > Cheers, > Donovan > > > > > paul wrote: > > > Hi > > > > I have a free adverts site where you can place and add in a category, > > nothing special but simple > > > > I want to add the option of adding a picture, the storebuilder options are > > too complicated, I would like to do this on just one form and ensure the > > picture is either a jpg or gif file > > > > Anyone have a little snippet or starting point > > > > ZThanks > > Paul > > > > -- > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > DONOVAN D. BROOKE EUCA Design Center > > <- Web Development (specializing in eCommerce),-> > <- Custom Paint, Labels, and Specialty Signage. -> > <- Home and Business Embellishment/Fabrication, -> > <- Glass Blowing, and Art Glass -> > > PH/FAX:> 1 (608) 835-2476 > Web:> http://www.egg.bz | http://www.euca.us > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Marko Bernyk

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WC Database Format (1997) setting line item numbers (1998) WebCatalog vs. Cold Fusion (1998) SSL (1998) Temp DB (Was freeze) (2003) Frames and WebCat (1997) YACBQ.....(Yet another checkbox question) (2000) Writing to disk (1999) AW: AW: Credit card processing - UK (1997) Not really WebCat (1997) BUG REPORT -- Refusing connections! (1999) Order not created error (1997) insecuretextvars preference doesn't work (2000) WebCatalog Use Question (1997) Upgrading to 4.0 (2000) PCS Frames (1997) multiple replace sku data (2003) Help! WebCat2 bug (1997) Searching in multiple databases from a form (1999) CloseDatabase (1997)