0

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

Edited by shafeequeom: mistake

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by shafeequeom
0

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 :)

0

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.

0

my problem is solved thanks to all

Edited by Ezzaral: Snipped link. Please restrict personal links to your site-wide user signature, which can be edited from the user control panel.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.