Re: Upload files
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 55595
interpreted = N
texte = Try this: [formvariables] [showif [url][name][/url]^[url]"rubriek"[/url]] [text]rubriek=[value][/text] [/showif] [showif [url][name][/url]^[url]"theFile"[/url]] [writefile file=[TargetPathNameExt]&secure=F][value][/writefile] [appenddb=database.db]SKU=[cart]&message=new&rubriek=[Rubriek]&filename=[TargetPathNameExt][/append] [/showif] [/formvariables]It's not recognising the variable name because of the multipart form so youhave to specify it as a variable. Another common way of doing it is to lookat what number is 'rubriek' in the formvariables... say it's '3', then you'ddo (within the [formvariables] loop: [showif [index]=3] [text]rubriek=[value][/text] [/showif]Regards,Tim> From: "Edwin Hoevers"
> Reply-To: (WebDNA Talk)> Date: Tue, 20 Jan 2004 23:43:11 +0100> To: (WebDNA Talk)> Subject: Upload files> > I use the upload files from http://www.webdnadev.net/ devolper Alain Russel.> Now I change the source so the filename and name are stored in a database.> > But on the upload form i want to add a new form variable. (uploadfile.html)> After sending the form the variable is not sending with the form (because> the "ENCTYPE="multipart/form-data" methode)> > How can i add [rubriek] into the uploadfilenow.html> Like this?> [formvariables]> [showif [url][name][/url]^[url]"theFile"[/url]]> [writefile file=[TargetPathNameExt]&secure=F][value][/writefile]> [append> db=database.db]SKU=[cart]&message=new&rubriek=[Rubriek]&filename=[TargetPath> NameExt][/append]> [/showif]> [/formvariables]> > Thnks,> Edwin Hoevers, The Netherlands> > > > -------------------------------------------------------------> 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:
Try this: [formvariables] [showif [url][name][/url]^[url]"rubriek"[/url]] [text]rubriek=[value][/text] [/showif] [showif [url][name][/url]^[url]"theFile"[/url]] [writefile file=[TargetPathNameExt]&secure=F][value][/writefile] [appenddb=database.db]SKU=[cart]&message=new&rubriek=[Rubriek]&filename=[TargetPathNameExt][/append] [/showif] [/formvariables]It's not recognising the variable name because of the multipart form so youhave to specify it as a variable. Another common way of doing it is to lookat what number is 'rubriek' in the formvariables... say it's '3', then you'ddo (within the [formvariables] loop: [showif [index]=3] [text]rubriek=[value][/text] [/showif]Regards,Tim> From: "Edwin Hoevers" > Reply-To: (WebDNA Talk)> Date: Tue, 20 Jan 2004 23:43:11 +0100> To: (WebDNA Talk)> Subject: Upload files> > I use the upload files from http://www.webdnadev.net/ devolper Alain Russel.> Now I change the source so the filename and name are stored in a database.> > But on the upload form i want to add a new form variable. (uploadfile.html)> After sending the form the variable is not sending with the form (because> the "ENCTYPE="multipart/form-data" methode)> > How can i add [rubriek] into the uploadfilenow.html> Like this?> [formvariables]> [showif [url][name][/url]^[url]"theFile"[/url]]> [writefile file=[TargetPathNameExt]&secure=F][value][/writefile]> [append> db=database.db]SKU=[cart]&message=new&rubriek=[Rubriek]&filename=[TargetPath> NameExt][/append]> [/showif]> [/formvariables]> > Thnks,> Edwin Hoevers, The Netherlands> > > > -------------------------------------------------------------> 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/
Tim Robinson
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:
Notepad problems (1998)
[CART] inside a [LOOP] (1997)
Re:How to Display text in empty fields (1997)
06/06/2000 bug warning ... (2000)
A better WebCat whois (was [OT] Domain Name Scam) (2000)
Simple way to create unique SKU (1997)
problems with WebCat-Plugin (1997)
Setting up shop (1997)
Protecting webdelivery (1997)
Cache Access Error (2000)
Emailer setup (1997)
Languages (1997)
ODBC Performance? (2001)
WebDNA Solutions ... sorry! (1997)
Problems getting parameters passed into email. (1997)
[WebDNA] Question on table search (2011)
Credit Card Gateways (2005)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
WebCat2b15MacPlugin - [protect] (1997)
Error upgrading to webDNA 5.1e (2003)