Re: [WebDNA] Passing a text variable via copyfile

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114905
interpreted = N
texte = 2533 --Apple-Mail=_4DDC14F0-F58F-4F47-986B-3816E22DF76A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Richard I am not sure if I have the scenarios correct here. 1) You create a new page by copying a template 2) You want [TEXT]name=3Drichard[/TEXT] in the new page (this is the bit = that I am unsure of) If you want [TEXT]name=3Drichard[/TEXT] to appear in the saved version = of the page you would need to do this = [RAW][TEXT]name=3D[/RAW[name_to_save][RAW][/TEXT][/RAW] Doing it this way will ensure that [TEXT]name=3Drichard[/TEXT] is = written (saved) on the new page rather than being a value held in RAM = and lost as soon as the page is loaded. Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@plsoftware.com.au > On 7 Oct 2019, at 01:28, Richard Kwasniewski = wrote: >=20 > I'm creating a a new html page from a form. >=20 > 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] >=20 > 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) >=20 >=20 > Possible? >=20 > This is what I'm using for the copyfile command > [copyfile = from=3Dtemplate.html&to=3D../[lowercase][page_name][/lowercase].html] >=20 > I have this in my template that is used to create the new page: > [text]name=3D[name][/text] >=20 > [name] gets passed just fine from the and gets written into the = database. > BUT the variable always is=20 > [text]name=3D[name][/text] > on the new page created. >=20 >=20 > This is all the code on the page that gets the input from the form: >=20 > [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] >=20 >=20 > [copyfile = from=3Dcompanion.html&to=3D../[lowercase][page_name][/lowercase].html] >=20 >=20 > Like always thanks for glancing at this. >=20 >=20 > Richard >=20 > --------------------------------------------------------- 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 --Apple-Mail=_4DDC14F0-F58F-4F47-986B-3816E22DF76A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = Richard

I am not = sure if I have the scenarios correct here.

1) You create a new page by copying a = template

2) = You want [TEXT]name=3Drichard[/TEXT] in the new page (this is the bit = that I am unsure of)

If you want [TEXT]name=3Drichard[/TEXT] to appear in the = saved version of the page you would need to do this = [RAW][TEXT]name=3D[/RAW[name_to_save][RAW][/TEXT][/RAW]

Doing it this way will = ensure that [TEXT]name=3Drichard[/TEXT] is written (saved) on the new = page rather than being a value held in RAM and lost as soon as the page = is loaded.

Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA







On 7 Oct 2019, at 01:28, Richard Kwasniewski <richiekwas@gmail.com> wrote:

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][/lowercase].html]<= br class=3D"">

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.
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][/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=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 --Apple-Mail=_4DDC14F0-F58F-4F47-986B-3816E22DF76A-- . 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)
2533 --Apple-Mail=_4DDC14F0-F58F-4F47-986B-3816E22DF76A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Richard I am not sure if I have the scenarios correct here. 1) You create a new page by copying a template 2) You want [text]name=3Drichard[/TEXT] in the new page (this is the bit = that I am unsure of) If you want [text]name=3Drichard[/TEXT] to appear in the saved version = of the page you would need to do this = [raw][text]name=3D[/RAW[name_to_save][raw][/TEXT][/RAW] Doing it this way will ensure that [text]name=3Drichard[/TEXT] is = written (saved) on the new page rather than being a value held in RAM = and lost as soon as the page is loaded. Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@plsoftware.com.au > On 7 Oct 2019, at 01:28, Richard Kwasniewski = wrote: >=20 > I'm creating a a new html page from a form. >=20 > 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] >=20 > 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) >=20 >=20 > Possible? >=20 > This is what I'm using for the copyfile command > [copyfile = from=3Dtemplate.html&to=3D../[lowercase][page_name][/lowercase].html] >=20 > I have this in my template that is used to create the new page: > [text]name=3D[name][/text] >=20 > [name] gets passed just fine from the and gets written into the = database. > BUT the variable always is=20 > [text]name=3D[name][/text] > on the new page created. >=20 >=20 > This is all the code on the page that gets the input from the form: >=20 > [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] >=20 >=20 > [copyfile = from=3Dcompanion.html&to=3D../[lowercase][page_name][/lowercase].html] >=20 >=20 > Like always thanks for glancing at this. >=20 >=20 > Richard >=20 > --------------------------------------------------------- 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 --Apple-Mail=_4DDC14F0-F58F-4F47-986B-3816E22DF76A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = Richard

I am not = sure if I have the scenarios correct here.

1) You create a new page by copying a = template

2) = You want [text]name=3Drichard[/TEXT] in the new page (this is the bit = that I am unsure of)

If you want [text]name=3Drichard[/TEXT] to appear in the = saved version of the page you would need to do this = [raw][text]name=3D[/RAW[name_to_save][raw][/TEXT][/RAW]

Doing it this way will = ensure that [text]name=3Drichard[/TEXT] is written (saved) on the new = page rather than being a value held in RAM and lost as soon as the page = is loaded.

Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA







On 7 Oct 2019, at 01:28, Richard Kwasniewski <richiekwas@gmail.com> wrote:

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][/lowercase].html]<= br class=3D"">

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.
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][/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=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 --Apple-Mail=_4DDC14F0-F58F-4F47-986B-3816E22DF76A-- . Stuart Tremain

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:

WCS Newbie question (1997) Renaming textA (1998) RE: Answer: WebDelivery downloads alias, not original ? (1997) frames & carts (1997) Newbie Question about seeting price to 0 (1998) [sendmail] v. [writefile] (2000) Zip Code Search (2000) Email Obfuscation Function (2008) Help name our technology! (1997) emailer error -108 (1997) Webcat run amuk (2002) Mac Vs WindowsNT (1997) [WebDNA] [WSC] WebDNA Development Summit (2014) File Upload (1997) Custom WebCat Prefs ... (1997) Parameter Passing Value (2002) more [sendmail] woes.. (2000) I forgot (1998) Using Applescript to process WebCatalog functions (1998) cart limit (2002)