Re: [WebDNA] Passing a text variable via copyfile

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114896
interpreted = N
texte = 2524 ------=_Part_2813314_255803245.1570385069729 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dug up an old site from like 10 years ago and saw I was using [writefile] = and [appendfile] in combo to achieve a similar task. Initial tests show wha= t I did way back then will work. I was sure I did something like I'm trying to do a long time ago... [copyfile] wasn't the way to go.I On Sunday, October 6, 2019, 10:33:32 A= M CDT, Scott @ Itsula wrote: =20 =20 #yiv3004803408 #yiv3004803408 -- _filtered #yiv3004803408 {panose-1:2 4 5 = 3 5 4 6 3 2 4;} _filtered #yiv3004803408 {font-family:Calibri;panose-1:2 15= 5 2 2 2 4 3 2 4;}#yiv3004803408 #yiv3004803408 p.yiv3004803408MsoNormal, #= yiv3004803408 li.yiv3004803408MsoNormal, #yiv3004803408 div.yiv3004803408Ms= oNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans= -serif;}#yiv3004803408 a:link, #yiv3004803408 span.yiv3004803408MsoHyperlin= k {color:blue;text-decoration:underline;}#yiv3004803408 a:visited, #yiv3004= 803408 span.yiv3004803408MsoHyperlinkFollowed {color:#954F72;text-decoratio= n:underline;}#yiv3004803408 p.yiv3004803408msonormal, #yiv3004803408 li.yiv= 3004803408msonormal, #yiv3004803408 div.yiv3004803408msonormal {margin-righ= t:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv30048034= 08 .yiv3004803408MsoChpDefault {} _filtered #yiv3004803408 {margin:72.0pt 7= 2.0pt 72.0pt 72.0pt;}#yiv3004803408 div.yiv3004803408WordSection1 {}#yiv300= 4803408=20 Tried changing both just to see? =C2=A0 =20 From: Rich Kwas Sent: 06 October 2019 16:30 To: talk@webdna.us Subject: Re: [WebDNA] Passing a text variable via copyfile =C2=A0 Added this to template.html which is copied to make a new file [name].html= [name][text]1name=3D[name][/text] The above does not change, nothing gets passed to the new filename I guess [copyfile] just copies a file with the defined parameters, like nam= e, path etc, without waiting for a variable? That would make sense since what's in the template just gets copied into th= e new file, giving the new file a new name as instructed in the code. On Sunday, October 6, 2019, 10:16:28 AM CDT, Scott @ Itsula wrote: #yiv3004803408 -- filtered {panose-1:2 4 5 3 5 4 6 3 2 4;}#yiv3004803408 fi= ltered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv3004803408 p= ..yiv3004803408MsoNormal, #yiv3004803408 li.yiv3004803408MsoNormal, #yiv3004= 803408 div.yiv3004803408MsoNormal {margin:0cm;margin-bottom:.0001pt;font-si= ze:11.0pt;font-family:sans-serif;}#yiv3004803408 a:link, #yiv3004803408 spa= n.yiv3004803408MsoHyperlink {color:blue;text-decoration:underline;}#yiv3004= 803408 a:visited, #yiv3004803408 span.yiv3004803408MsoHyperlinkFollowed {co= lor:#954F72;text-decoration:underline;}#yiv3004803408 .yiv3004803408MsoChpD= efault {}#yiv3004803408 filtered {margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv3= 004803408 div.yiv3004803408WordSection1 {}#yiv3004803408=20 Am speculating, but is it perhaps simply related to using name, name. Test = with an alternate variable name for name? =C2=A0 Scott=20 =C2=A0 From: Richard Kwasniewski Sent: 06 October 2019 15:29 To: talk@webdna.us Subject: [WebDNA] Passing a text variable via copyfile =C2=A0 I'm creating a a new html page from a form. The user inputs a "page_name" and a "name". I need this "name" to get passe= d into the new page made by copying a template using [copyfile] I need a text variable created on this new page[text]name=3DMelissa[/text](= Melissa is the name being passed via the form in this example) Possible? This is what I'm using for the copyfile command[copyfile from=3Dtemplate.ht= ml&to=3D../[lowercase][page_name][/lowercase].html] I have this in my template that is used to create the new page:[text]name= =3D[name][/text] [name] gets passed just fine from the and gets written into the database.BU= T the variable always is=C2=A0[text]name=3D[name][/text]on the new page cre= ated. This is all the code on the page that gets the input from the form: [append db=3Dpages.db][!] [/!]page_id=3D[page_id][!] [/!]&page_name=3D[url][page_name][/url][!] [/!]&name=3D[url][name][/url][!] [/!][!]&description=3D[url][description][/url][/!][!] [/!]&active=3DNo[!] [/!]&create_time=3D[time][!] [/!]&create_date=3D[date][!] [/!]&create_ipaddress=3D[ipaddress][!] [/!][/append] [copyfile from=3Dcompanion.html&to=3D../[lowercase][page_name][/lowercase].= html] Like always thanks for glancing at this. Richard --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list talk@webdna.us To= unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.u= s/page.dna?numero=3D55 Bug Reporting: support@webdna.us--------------------= ------------------------------------- This message is sent to you because y= ou are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail= to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D= 55 Bug Reporting: support@webdna.us----------------------------------------= ----------------- This message is sent to you because you are subscribed to= the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webd= na.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: su= pport@webdna.us---------------------------------------------------------Thi= s message is sent to you because you are subscribed tothe mailing list talk= @webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://w= ww.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us =20 ------=_Part_2813314_255803245.1570385069729 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Dug up an old site from like 10 years ago and saw I was using [writefile] and [appendfile] in combo to achieve a similar task. Initial tests show what I did way back then will work.

I was sure I did something like I'm trying to do a long time ago...

[copyfile] wasn't the way to go.
I
On Sunday, October 6, 2019, 10:33:32 AM CDT, Scott @ Itsula <scott@itsula.co.uk> wrote:


Tried changing both just to see?

 

From: Rich Kwas
Sent: 06 October 2019 16:30
To: talk@webdna.us
Subject: Re: [WebDNA] Passing a text variable via copyfile

 

Added this to template.html which is copied to make a new file [name].html
[name]
[text]1name=[name][/text]

The above does not change, nothing gets passed to the new filename


I guess [copyfile] just copies a file with the defined parameters, like name, path etc, without waiting for a variable?

That would make sense since what's in the template just gets copied into the new file, giving the new file a new name as instructed in the code.



On Sunday, October 6, 2019, 10:16:28 AM CDT, Scott @ Itsula <scott@itsula.co.uk> wrote:


Am speculating, but is it perhaps simply related to using name, name. Test with an alternate variable name for name?

 

Scott

 

From: Richard Kwasniewski
Sent: 06 October 2019 15:29
To: talk@webdna.us
Subject: [WebDNA] Passing a text variable via copyfile

 

I'm creating a a new html page from a form.

The user inputs a "page_name" and a "name". I need this "name" to get passed into the new page made by copying a template using [copyfile]

I need a text variable created on this new page
[text]name=Melissa[/text]
(Melissa is the name being passed via the form in this example)


Possible?

This is what I'm using for the copyfile command
[copyfile from=template.html&to=../[lowercase][page_name][/lowercase].html]

I have this in my template that is used to create the new page:
[text]name=[name][/text]

[name] gets passed just fine from the and gets written into the database.
BUT the variable always is 
[text]name=[name][/text]
on the new page created.


This is all the code on the page that gets the input from the form:

[append db=pages.db][!]
[/!]page_id=[page_id][!]
[/!]&page_name=[url][page_name][/url][!]
[/!]&name=[url][name][/url][!]
[/!][!]&description=[url][description][/url][/!][!]
[/!]&active=No[!]
[/!]&create_time=[time][!]
[/!]&create_date=[date][!]
[/!]&create_ipaddress=[ipaddress][!]
[/!][/append]


[copyfile from=companion.html&to=../[lowercase][page_name][/lowercase].html]


Like always thanks for glancing at this.


Richard

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us ------=_Part_2813314_255803245.1570385069729-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  2. Re: [WebDNA] Passing a text variable via copyfile (WebDNA Solutions 2019)
  3. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  4. Re: [WebDNA] Passing a text variable via copyfile (Stuart Tremain 2019)
  5. RE: [BULK] Re: [WebDNA] Passing a text variable via copyfile ("Terry Nair" 2019)
  6. [BULK] Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  7. RE: [WebDNA] Passing a text variable via copyfile ("Terry Nair" 2019)
  8. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  9. Re: [WebDNA] Passing a text variable via copyfile (WebDNA Solutions 2019)
  10. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  11. RE: [WebDNA] Passing a text variable via copyfile ("Scott @ Itsula" 2019)
  12. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  13. RE: [WebDNA] Passing a text variable via copyfile ("Scott @ Itsula" 2019)
  14. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  15. Re: [WebDNA] Passing a text variable via copyfile (WebDNA Solutions 2019)
  16. [WebDNA] Passing a text variable via copyfile (Richard Kwasniewski 2019)
2524 ------=_Part_2813314_255803245.1570385069729 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dug up an old site from like 10 years ago and saw I was using [writefile] = and [appendfile] in combo to achieve a similar task. Initial tests show wha= t I did way back then will work. I was sure I did something like I'm trying to do a long time ago... [copyfile] wasn't the way to go.I On Sunday, October 6, 2019, 10:33:32 A= M CDT, Scott @ Itsula wrote: =20 =20 #yiv3004803408 #yiv3004803408 -- _filtered #yiv3004803408 {panose-1:2 4 5 = 3 5 4 6 3 2 4;} _filtered #yiv3004803408 {font-family:Calibri;panose-1:2 15= 5 2 2 2 4 3 2 4;}#yiv3004803408 #yiv3004803408 p.yiv3004803408MsoNormal, #= yiv3004803408 li.yiv3004803408MsoNormal, #yiv3004803408 div.yiv3004803408Ms= oNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans= -serif;}#yiv3004803408 a:link, #yiv3004803408 span.yiv3004803408MsoHyperlin= k {color:blue;text-decoration:underline;}#yiv3004803408 a:visited, #yiv3004= 803408 span.yiv3004803408MsoHyperlinkFollowed {color:#954F72;text-decoratio= n:underline;}#yiv3004803408 p.yiv3004803408msonormal, #yiv3004803408 li.yiv= 3004803408msonormal, #yiv3004803408 div.yiv3004803408msonormal {margin-righ= t:0cm;margin-left:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv30048034= 08 .yiv3004803408MsoChpDefault {} _filtered #yiv3004803408 {margin:72.0pt 7= 2.0pt 72.0pt 72.0pt;}#yiv3004803408 div.yiv3004803408WordSection1 {}#yiv300= 4803408=20 Tried changing both just to see? =C2=A0 =20 From: Rich Kwas Sent: 06 October 2019 16:30 To: talk@webdna.us Subject: Re: [WebDNA] Passing a text variable via copyfile =C2=A0 Added this to template.html which is copied to make a new file [name].html= [name][text]1name=3D[name][/text] The above does not change, nothing gets passed to the new filename I guess [copyfile] just copies a file with the defined parameters, like nam= e, path etc, without waiting for a variable? That would make sense since what's in the template just gets copied into th= e new file, giving the new file a new name as instructed in the code. On Sunday, October 6, 2019, 10:16:28 AM CDT, Scott @ Itsula wrote: #yiv3004803408 -- filtered {panose-1:2 4 5 3 5 4 6 3 2 4;}#yiv3004803408 fi= ltered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv3004803408 p= ..yiv3004803408MsoNormal, #yiv3004803408 li.yiv3004803408MsoNormal, #yiv3004= 803408 div.yiv3004803408MsoNormal {margin:0cm;margin-bottom:.0001pt;font-si= ze:11.0pt;font-family:sans-serif;}#yiv3004803408 a:link, #yiv3004803408 spa= n.yiv3004803408MsoHyperlink {color:blue;text-decoration:underline;}#yiv3004= 803408 a:visited, #yiv3004803408 span.yiv3004803408MsoHyperlinkFollowed {co= lor:#954F72;text-decoration:underline;}#yiv3004803408 .yiv3004803408MsoChpD= efault {}#yiv3004803408 filtered {margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv3= 004803408 div.yiv3004803408WordSection1 {}#yiv3004803408=20 Am speculating, but is it perhaps simply related to using name, name. Test = with an alternate variable name for name? =C2=A0 Scott=20 =C2=A0 From: Richard Kwasniewski Sent: 06 October 2019 15:29 To: talk@webdna.us Subject: [WebDNA] Passing a text variable via copyfile =C2=A0 I'm creating a a new html page from a form. The user inputs a "page_name" and a "name". I need this "name" to get passe= d into the new page made by copying a template using [copyfile] I need a text variable created on this new page[text]name=3DMelissa[/text](= Melissa is the name being passed via the form in this example) Possible? This is what I'm using for the copyfile command[copyfile from=3Dtemplate.ht= ml&to=3D../[lowercase][page_name][/lowercase].html] I have this in my template that is used to create the new page:[text]name= =3D[name][/text] [name] gets passed just fine from the and gets written into the database.BU= T the variable always is=C2=A0[text]name=3D[name][/text]on the new page cre= ated. This is all the code on the page that gets the input from the form: [append db=3Dpages.db][!] [/!]page_id=3D[page_id][!] [/!]&page_name=3D[url][page_name][/url][!] [/!]&name=3D[url][name][/url][!] [/!][!]&description=3D[url][description][/url][/!][!] [/!]&active=3DNo[!] [/!]&create_time=3D[time][!] [/!]&create_date=3D[date][!] [/!]&create_ipaddress=3D[ipaddress][!] [/!][/append] [copyfile from=3Dcompanion.html&to=3D../[lowercase][page_name][/lowercase].= html] Like always thanks for glancing at this. Richard --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list talk@webdna.us To= unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.u= s/page.dna?numero=3D55 Bug Reporting: support@webdna.us--------------------= ------------------------------------- This message is sent to you because y= ou are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail= to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D= 55 Bug Reporting: support@webdna.us----------------------------------------= ----------------- This message is sent to you because you are subscribed to= the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webd= na.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: su= pport@webdna.us---------------------------------------------------------Thi= s message is sent to you because you are subscribed tothe mailing list talk= @webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://w= ww.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us =20 ------=_Part_2813314_255803245.1570385069729 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Dug up an old site from like 10 years ago and saw I was using [writefile] and [appendfile] in combo to achieve a similar task. Initial tests show what I did way back then will work.

I was sure I did something like I'm trying to do a long time ago...

[copyfile] wasn't the way to go.
I
On Sunday, October 6, 2019, 10:33:32 AM CDT, Scott @ Itsula <scott@itsula.co.uk> wrote:


Tried changing both just to see?

 

From: Rich Kwas
Sent: 06 October 2019 16:30
To: talk@webdna.us
Subject: Re: [WebDNA] Passing a text variable via copyfile

 

Added this to template.html which is copied to make a new file [name].html
[name]
[text]1name=[name][/text]

The above does not change, nothing gets passed to the new filename


I guess [copyfile] just copies a file with the defined parameters, like name, path etc, without waiting for a variable?

That would make sense since what's in the template just gets copied into the new file, giving the new file a new name as instructed in the code.



On Sunday, October 6, 2019, 10:16:28 AM CDT, Scott @ Itsula <scott@itsula.co.uk> wrote:


Am speculating, but is it perhaps simply related to using name, name. Test with an alternate variable name for name?

 

Scott

 

From: Richard Kwasniewski
Sent: 06 October 2019 15:29
To: talk@webdna.us
Subject: [WebDNA] Passing a text variable via copyfile

 

I'm creating a a new html page from a form.

The user inputs a "page_name" and a "name". I need this "name" to get passed into the new page made by copying a template using [copyfile]

I need a text variable created on this new page
[text]name=Melissa[/text]
(Melissa is the name being passed via the form in this example)


Possible?

This is what I'm using for the copyfile command
[copyfile from=template.html&to=../[lowercase][page_name][/lowercase].html]

I have this in my template that is used to create the new page:
[text]name=[name][/text]

[name] gets passed just fine from the and gets written into the database.
BUT the variable always is 
[text]name=[name][/text]
on the new page created.


This is all the code on the page that gets the input from the form:

[append db=pages.db][!]
[/!]page_id=[page_id][!]
[/!]&page_name=[url][page_name][/url][!]
[/!]&name=[url][name][/url][!]
[/!][!]&description=[url][description][/url][/!][!]
[/!]&active=No[!]
[/!]&create_time=[time][!]
[/!]&create_date=[date][!]
[/!]&create_ipaddress=[ipaddress][!]
[/!][/append]


[copyfile from=companion.html&to=../[lowercase][page_name][/lowercase].html]


Like always thanks for glancing at this.


Richard

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us ------=_Part_2813314_255803245.1570385069729-- . Rich Kwas

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:

PROBLEM (1997) Comments in db? (1997) Sendmail Question (2001) Running 2 two WebCatalog.acgi's (1996) select multiple (1997) Strange intermittent WebDNA problems (2008) can WC render sites out? (1997) Electronic Delivery (1997) [WebDNA] upgrading to 8.1 or 8.2? (2016) E-mailer error codes (1997) [tcp connect] (1998) [TCPConnect] questions/problems (2001) Reversed words (1997) [WebDNA] Copy a whole row from a db to another db or table (2017) Where's Cart Created ? (1997) FTP via Shell Question (2005) Fileinfo... (2000) Search Folder? (1998) PSC recommends what date format yr 2000??? (1997) f2 download problems (1997)