my goal: is when i click the sign up link it will move me to the signup.php and it will show the page!
i am trying to build asub page with the same login form header with php, but when i start using the
<?php
include_once 'header.php';
?>
it dosent work and it dosent move me to the subapge!
here is the code :
index.php
<?php
include_once 'header.php';
?>
<section class="main-container">
<div class="main-warrper">
<h2> signup </h2>
</div>
</section>
<?php
include_once 'footer.php';
?>
header.php
<!DOCTYPE html>
<html>
<head>
<title> login form </title>
<link rel="stylesheet" type="text/css" href="style22.css">
</head>
<body>
<header>
<nav>
<div class= "main-warrper">
<ul>
<li><a href="index.php">home </a></li>
</ul>
<div class="nav-login">
<form>
<input type = "text" name="uid" placeholder="email">
<input type = "password" name="pwd" placeholder="password">
<button type="submit" name="submit"> login </button>
</form>
<a href="signup.php">sign up </a>
</div>
</div>
</nav>
</header>
signup.php
<?php
include_once 'header.php';
?>
<section class="main-container">
<div class="main-warrper">
<h2> signup </h2>
</div>
</section>
<?php
include_once 'footer.php';
?>
tage cange to sign up from home
– david33 Dec 16 '17 at 16:39