Skip to main content
Participant
March 23, 2011
質問

Template - PHP and html ???

  • March 23, 2011
  • 返信数 2.
  • 1173 ビュー

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.

このトピックへの返信は締め切られました。

返信数 2

tenoc作成者
Participant
May 21, 2011

Thanks

Günter_Schenk
Inspiring
March 24, 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.