Re: [WebDNA] Passing a text variable via copyfile

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114893
interpreted = N
texte = 2521 ------=_Part_2782743_255308080.1570375780575 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: =20 =20 #yiv4123137868 #yiv4123137868 -- _filtered #yiv4123137868 {panose-1:2 4 5 = 3 5 4 6 3 2 4;} _filtered #yiv4123137868 {font-family:Calibri;panose-1:2 15= 5 2 2 2 4 3 2 4;}#yiv4123137868 #yiv4123137868 p.yiv4123137868MsoNormal, #= yiv4123137868 li.yiv4123137868MsoNormal, #yiv4123137868 div.yiv4123137868Ms= oNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans= -serif;}#yiv4123137868 a:link, #yiv4123137868 span.yiv4123137868MsoHyperlin= k {color:blue;text-decoration:underline;}#yiv4123137868 a:visited, #yiv4123= 137868 span.yiv4123137868MsoHyperlinkFollowed {color:#954F72;text-decoratio= n:underline;}#yiv4123137868 .yiv4123137868MsoChpDefault {} _filtered #yiv41= 23137868 {margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv4123137868 div.yiv4123137= 868WordSection1 {}#yiv4123137868=20 Am speculating, but is it perhaps simply related to using name, name. Test = with an alternate variable name for name? =20 =C2=A0 =20 Scott=20 =C2=A0 =20 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 yo= u are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to= : talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bu= g Reporting: support@webdna.us =20 ------=_Part_2782743_255308080.1570375780575 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Added this to template.html = which is copied to make a new file [name].html
=09=09[name]
=09=09[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 name, path e= tc, without waiting for a variable?

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



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


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

=20

 

= =20

Scott

 

=20

F= rom: Richard Kwa= sniewski
Sent: 06 October 2019 15:29
To: talk@webdna.us Subject: [WebDNA] Passing a text variable via copyfile

 

=20
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=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.html&to=3D../[lowercase][page_name][/low= ercase].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 databa= se.
BUT the variable always is 
[text]name=3D[name][/text]
on the new page created.


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][/lowerca= se].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 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=3D55 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=3D55 Bug Reporting: support@webdna.us ------=_Part_2782743_255308080.1570375780575-- . 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)
2521 ------=_Part_2782743_255308080.1570375780575 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: =20 =20 #yiv4123137868 #yiv4123137868 -- _filtered #yiv4123137868 {panose-1:2 4 5 = 3 5 4 6 3 2 4;} _filtered #yiv4123137868 {font-family:Calibri;panose-1:2 15= 5 2 2 2 4 3 2 4;}#yiv4123137868 #yiv4123137868 p.yiv4123137868MsoNormal, #= yiv4123137868 li.yiv4123137868MsoNormal, #yiv4123137868 div.yiv4123137868Ms= oNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans= -serif;}#yiv4123137868 a:link, #yiv4123137868 span.yiv4123137868MsoHyperlin= k {color:blue;text-decoration:underline;}#yiv4123137868 a:visited, #yiv4123= 137868 span.yiv4123137868MsoHyperlinkFollowed {color:#954F72;text-decoratio= n:underline;}#yiv4123137868 .yiv4123137868MsoChpDefault {} _filtered #yiv41= 23137868 {margin:72.0pt 72.0pt 72.0pt 72.0pt;}#yiv4123137868 div.yiv4123137= 868WordSection1 {}#yiv4123137868=20 Am speculating, but is it perhaps simply related to using name, name. Test = with an alternate variable name for name? =20 =C2=A0 =20 Scott=20 =C2=A0 =20 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 yo= u are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to= : talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bu= g Reporting: support@webdna.us =20 ------=_Part_2782743_255308080.1570375780575 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Added this to template.html = which is copied to make a new file [name].html
=09=09[name]
=09=09[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 name, path e= tc, without waiting for a variable?

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



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


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

=20

 

= =20

Scott

 

=20

F= rom: Richard Kwa= sniewski
Sent: 06 October 2019 15:29
To: talk@webdna.us Subject: [WebDNA] Passing a text variable via copyfile

 

=20
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=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.html&to=3D../[lowercase][page_name][/low= ercase].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 databa= se.
BUT the variable always is 
[text]name=3D[name][/text]
on the new page created.


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][/lowerca= se].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 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=3D55 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=3D55 Bug Reporting: support@webdna.us ------=_Part_2782743_255308080.1570375780575-- . 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:

RE: [taxRate] [TaxTotal] ? (1997) [UPPERCASE] (1997) 2nd Request for help/advice on variable pricing (2000) How to put the Trademark Symbol (%99) in Sendmail? (2003) Fwd: 502 Bad Gateway (1998) Search results output problems.. (2000) [FoundItems] solved - thanks (1997) Online reference (1997) WebCat2b15MacPlugin - showing [math] (1997) formatting a number (1999) emailer (1997) Re:no [search] with NT (1997) Help name our technology! I found it (1997) Firesite and [referrer] atg broke (1997) help needed: Non-english characters in WebCatalog (1997) Two submit buttons ? (1997) [Writefile] path (2005) Re:WebCatalog vidoes (was: Prices Dropped) (1998) NT beta ReadMe missing (b12-b15) (1997) Re:Help name our technology! (1997)