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:

MATH TIME (1997) Adding repeating events to a database (2001) Grant, please help me ... (1997) Nutscrape Doesn't Render Right (2002) Buying sans cart (1997) SiteGuard Admin Feature ? (1997) Emailer setup (1997) Linux Install Question (2000) Is there an easier way? (1998) Another question (1997) Friendly , quick 'security' check, please (2003) Searching multiple fields from one form field (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) WebCatalog can't find database (1997) A little syntax help (1997) WebCat & WebTen (1997) OT : javascript form filling (2000) Moving Files (2000) HTML encoding in URLs (1997) nested context (1998)