Re: [WebDNA] Passing a text variable via copyfile

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114901
interpreted = N
texte = 2529 ------=_Part_2891059_1229611499.1570408848349 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ken, [writefile] is doing everything I want in regards to passing along th= at [name] variable from the form entry that is being used to create the pag= e. The [page_name} was always coming across just fine. I just needed to emb= ed a [name] as a text variable on the new page created. I'm using [writefile] but have an error that's puzzling be appearing t the = bottom of the created page using [writefile] This is the beginning of the [writefile] code: [writefile ../[lowercase][page_name][/lowercase].html] =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ( the rest of the html code here with a few items wrapped with [raw][/raw] = that I do not want processed by webdna during [writefile] ) [/writefile] BUT I keep getting this error at the bottom of the newly created page: =C2=A0 =C2=A0 =C2=A0 Error: Error: expected [/IF], but found [/writefile] i= nstead[/writefile] I have no [if] [then] code anywhere on the html being used in=C2=A0 =C2=A0 = =C2=A0=C2=A0 =C2=A0 =C2=A0 [writefile] my html page code [/writefile] I've searched for all instances of writefile and there are only 2 as I've r= eferenced above. What could be causing that error line? On Sunday, October 6, 2019, 02:44:31 PM CDT, WebDNA Solutions wrote: =20 =20 Richard, Your append context is fine as originally written, but you need to use this code instead of your copyfile code: [text]theNewFileContent=3D[include companion.html][/text] [writefile ../[lowercase][page_name][/lowercase].html] [theNewFileContent] [/writefile] If this doesn't work you'll need to modify the code in your "companion.html" file ... but test this first and see if it works, because it probably will. Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Urgent/Emergency Phone: (228) 222-2917 Website, Database, Network, and Communication Systems --------------------------------------------------------- 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 =20 ------=_Part_2891059_1229611499.1570408848349 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
=
Ken, [writefile] is doing ev= erything I want in regards to passing along that [name] variable from the f= orm entry that is being used to create the page. The [page_name} was always= coming across just fine. I just needed to embed a [name] as a text variabl= e on the new page created.

=
I'm using [writefile] but have= an error that's puzzling be appearing t the bottom of the created page usi= ng [writefile]


This is the beginning of the [writefile] code:

[writefile ../[lowercase][page_name][/lowercase].html]
<!DOCTYPE html>
<html>
  &= lt;head>
    <meta charset=3D"utf-8">
    <meta name=3D"viewport" content=3D"width=3Ddevice-width,= initial-scale=3D1, maximum-scale=3D1, user-scalable=3Dno">
&n= bsp;   <meta name=3D"description" content=3D"">
    <meta name=3D"author" content= =3D"">

( the rest of the html code here wi= th a few items wrapped with [raw][/raw] that I do not want processed by web= dna during [writefile] )

[/writefile]

<= br>
BUT

I kee= p getting this error at the bottom of the newly created page:

      Error: Error: expected [/IF], but found [/w= ritefile] instead[/writefile]


I have no= [if] [then] code anywhere on the html being used in
     
      [writefile] my= html page code [/writefile]

I've sea= rched for all instances of writefile and there are only 2 as I've reference= d above.


What could be causing that error line?



=20
=20
On Sunday, October 6, 2019, 02:44:31 PM CDT, WebDNA Sol= utions <ken@webdnasolutions.com> wrote:


Richard,

Your append context is fine as originally written, but you
need to use this code instead of your copyfile code:

[text]theNewFileContent=3D[include companion.h= tml][/text]

[writefile ../[lowercase][= page_name][/lowercase].html]
[theNewFileContent]
[/writefile]

If this doesn't= work you'll need to modify the code in your
"companion.h= tml" file ... but test this first and see if it
works, be= cause it probably will.

Regards,
Kenneth Grome
WebDNA Solutions
http://www.webdnasolutions.com
Urgent/Emergency= Phone: (228) 222-2917
Website, Database, Network, and Co= mmunication Systems




--------= -------------------------------------------------
This me= ssage is sent to you because you are subscribed to
the ma= iling list talk@webdna.us
To unsubscribe, E-m= ail to: talk-leave@webdna.us
arch= ives: 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_2891059_1229611499.1570408848349-- . 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)
2529 ------=_Part_2891059_1229611499.1570408848349 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ken, [writefile] is doing everything I want in regards to passing along th= at [name] variable from the form entry that is being used to create the pag= e. The [page_name} was always coming across just fine. I just needed to emb= ed a [name] as a text variable on the new page created. I'm using [writefile] but have an error that's puzzling be appearing t the = bottom of the created page using [writefile] This is the beginning of the [writefile] code: [writefile ../[lowercase][page_name][/lowercase].html] =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ( the rest of the html code here with a few items wrapped with [raw][/raw] = that I do not want processed by webdna during [writefile] ) [/writefile] BUT I keep getting this error at the bottom of the newly created page: =C2=A0 =C2=A0 =C2=A0 Error: Error: expected [/IF], but found [/writefile] i= nstead[/writefile] I have no [if] [then] code anywhere on the html being used in=C2=A0 =C2=A0 = =C2=A0=C2=A0 =C2=A0 =C2=A0 [writefile] my html page code [/writefile] I've searched for all instances of writefile and there are only 2 as I've r= eferenced above. What could be causing that error line? On Sunday, October 6, 2019, 02:44:31 PM CDT, WebDNA Solutions wrote: =20 =20 Richard, Your append context is fine as originally written, but you need to use this code instead of your copyfile code: [text]theNewFileContent=3D[include companion.html][/text] [writefile ../[lowercase][page_name][/lowercase].html] [theNewFileContent] [/writefile] If this doesn't work you'll need to modify the code in your "companion.html" file ... but test this first and see if it works, because it probably will. Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Urgent/Emergency Phone: (228) 222-2917 Website, Database, Network, and Communication Systems --------------------------------------------------------- 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 =20 ------=_Part_2891059_1229611499.1570408848349 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
=
Ken, [writefile] is doing ev= erything I want in regards to passing along that [name] variable from the f= orm entry that is being used to create the page. The [page_name} was always= coming across just fine. I just needed to embed a [name] as a text variabl= e on the new page created.

=
I'm using [writefile] but have= an error that's puzzling be appearing t the bottom of the created page usi= ng [writefile]


This is the beginning of the [writefile] code:

[writefile ../[lowercase][page_name][/lowercase].html]
<!DOCTYPE html>
<html>
  &= lt;head>
    <meta charset=3D"utf-8">
    <meta name=3D"viewport" content=3D"width=3Ddevice-width,= initial-scale=3D1, maximum-scale=3D1, user-scalable=3Dno">
&n= bsp;   <meta name=3D"description" content=3D"">
    <meta name=3D"author" content= =3D"">

( the rest of the html code here wi= th a few items wrapped with [raw][/raw] that I do not want processed by web= dna during [writefile] )

[/writefile]

<= br>
BUT

I kee= p getting this error at the bottom of the newly created page:

      Error: Error: expected [/IF], but found [/w= ritefile] instead[/writefile]


I have no= [if] [then] code anywhere on the html being used in
     
      [writefile] my= html page code [/writefile]

I've sea= rched for all instances of writefile and there are only 2 as I've reference= d above.


What could be causing that error line?



=20
=20
On Sunday, October 6, 2019, 02:44:31 PM CDT, WebDNA Sol= utions <ken@webdnasolutions.com> wrote:


Richard,

Your append context is fine as originally written, but you
need to use this code instead of your copyfile code:

[text]theNewFileContent=3D[include companion.h= tml][/text]

[writefile ../[lowercase][= page_name][/lowercase].html]
[theNewFileContent]
[/writefile]

If this doesn't= work you'll need to modify the code in your
"companion.h= tml" file ... but test this first and see if it
works, be= cause it probably will.

Regards,
Kenneth Grome
WebDNA Solutions
http://www.webdnasolutions.com
Urgent/Emergency= Phone: (228) 222-2917
Website, Database, Network, and Co= mmunication Systems




--------= -------------------------------------------------
This me= ssage is sent to you because you are subscribed to
the ma= iling list talk@webdna.us
To unsubscribe, E-m= ail to: talk-leave@webdna.us
arch= ives: 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_2891059_1229611499.1570408848349-- . 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:

256 character limit in URL? Kinda urgent... (2004) Search design (1997) weird happenings (1997) WebCat2 - Getting to the browser's username/password data (1997) unsubscribe (1999) Date Formats (1997) Using Cookie for client specific info? (1997) Return records from another (1997) Re[3]: Re[3]: Problem with new formvariables (2000) [referrer] tag (1997) Webcatalog Future?!? (2000) Credit Card Number checking (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Bug alert! (1997) WebCatalog for guestbook ? (1997) WebCatalog 4.0 has been released! (2000) Need help with form (1998) emailer (1997) Help! WebCat2 bug (1997) Just a thought (1998)