On 7 Oct 2019, at 01:28, Richard Kwasniewski <richiekwas@gmail.com> wrote:I'm creating a a new html page from a form.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.usThe 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
On 7 Oct 2019, at 01:28, Richard Kwasniewski <richiekwas@gmail.com> wrote:I'm creating a a new html page from a form.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.usThe 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
DOWNLOAD WEBDNA NOW!
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...