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:

PCS Emailer's role ? (1997) Navigator 4.0 & tables (1997) Tech question about web dna actions (1998) AOL refuses some e-mails (2000) BUG REPORT: numeric ge, le, gr & ls comparisons don't work ... (1999) Multiple catalog databases and showcart (1997) WebDNA Solutions ... sorry! (1997) [WebDNA] sort parameters in search (2015) [Solved? - with code] catching WebDNA error messages (2003) Bug Report, maybe (1997) Adding freight and percentages (2000) Email Set-Up? (1997) repost: I'd like the image this chunk of WEBDNA returns to be hyperlinked to the (2000) slightly OT: advertising schemes (2004) Emailer compatibility..... (1998) problem serving foreign languages text (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) Formulas.db (1997) NT or Mac (1998) [WebDNA] [BULK] The WebDAV Server Module / web services (2012)