Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Template - PHP and html ???

New Here ,
Mar 23, 2011 Mar 23, 2011

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.

TOPICS
Server side applications
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Mar 23, 2011 Mar 23, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 21, 2011 May 21, 2011
LATEST

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines