Copy link to clipboard
Copied
I am a “newbie”. I amusing DreamWeaver CS5. I have set up 3static html pages and a dynamic (login.php) pages. All are working. The login php page updates the database onthe WAMPServer localhost.
I now want to create a template to ensure that the html and php pages look the same. It was myintention to use one of my html pages for the starting point of for the template bycreating an editable region in an html page and then save it as a template (main_template.dwt)file.
Question – Will the PHP pages work using the templatecreated from the main_template.dwt file?
Or will I need two templates, one for the html pages. andone for the php pages?
Or can I use a html page for the input form and then passthe login information to a php file that is not based on the template whichwill then pass the information to the database?
Forgive me if I am not clear. Remember we all were “newbie” at one time.
Copy link to clipboard
Copied
Well, templates are probably the only Dreamweaver feature I´ve never used, so let´s hope that someone else will provide a reasonable answer.
tenoc wrote:
Or can I use a html page for the input form and then passthe login information to a php file
If the submitted login credentials are incorrect, your PHP script should redirect the visitor to the Login form, which should additionally display some meaningful error messages -- meaning that the login form should be be embedded into a .php document as well.
Copy link to clipboard
Copied
Thanks
Find more inspiration, events, and resources on the new Adobe Community
Explore Now