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:

Wrapping text (1998) Re:no template caching (1997) http://www.teamorganizer.net/tour5.html (2000) Modifying Carts (1999) Still can't upgrade users.db to 2.1.1 (1998) UPS Online tool (2007) Problem displaying search result (1997) Imagemagick, webdna, etc (2006) WC 4? (2001) PIXO (1997) PROBLEMS WITH WEBCAT LINUX (2000) [WebDNA] returnraw redirects on version 6.2.1 on CentOS (2013) [WebDNA] [WSC] WebDNA Development Summit (2014) Trouble with formula.db + more explanation (1997) Help name our technology! I found it (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Mac Vs WindowsNT (1997) Sorting by date (1997) Practice runs ? (1997) Associative lookup style? + bit more (1997)