View Single Post
Old 03-25-2009, 06:19 PM   #3 (permalink)
hello-world
The Contributor
 
hello-world's Avatar
 
Join Date: Feb 2009
Posts: 73
Thanks: 30
hello-world is on a distinguished road
Default

actually I use have a HTML (named profil.html) file which contains php coding inside.I used file_get_contents and parse it. The php codings is turned as string not as php script.
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <link href="templates/default/stylesheet.css" rel="stylesheet" type="text/css"/></link>
        <title></title>
    </head>
    <body><div id="menu">{menu}</div>
        <div id="log">
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" accept-charset="utf-8">

    <u><?php if(in_array("fill"$Nuser->error)) echo "<font color=red>Please fill all Fields</font>"?>
    <li>Name<input type="text" name = username>    <?php if(in_array("user"$Nuser->error)) echo "<font color=red>Wrong user</font>"?><?php if(in_array("taken"$Nuser->error)) echo "<font color=red>User taken</font>"?></li>

    <li>Password<input type="text" name = password>    <?php if(!empty($NoMatchedPass)){echo "passwords didn't matched";} ?><?php if(in_array("pass"$Nuser->error)) echo "<font color=red>Wrong user</font>"?></li>
    <li>Password<input type="text" name = password1></li>
    <li>Email<input type="text" name = email> <?php if(in_array("email"$Nuser->error)) echo "<font color=red>Wrong user</font>"?></li>
    <li><input type="submit" value="Register" name="submit"></li>
    </u>
</form>
</div>
    </body>
</html>
hello-world is offline  
Reply With Quote