I have a html template.I want to add login php script to my html.Putting frame and taking php to html is making some problem.Plaese help me, how i can take php script to my template

Use PHP to include the script. Example:

<html>
<head>
<title>Login Script</title>
</head>
<body>
<?php
include("login.php");
?>
</body>
</html>

Hope this helps,
Kieran :)

Use PHP to include the script. Example:

<html>
<head>
<title>Login Script</title>
</head>
<body>
<?php
include("login.php");
?>
</body>
</html>

Hope this helps,
Kieran :)

Exactly as Kieran put it, with note that you should change the extension of your html template for this to work, currently it's probably .htm or .html - if so, just change it to .php

Also, if that doesn't work out, or you get an error 'headers already sent', then move the:

<?php
include("login.php");
?>

to the very top of the code, above everything else.

my problem is solved thanks to all

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.