laravel php framework
을 사용하여 로그인 양식을 쓰고 있습니다. 내가 클릭
Login code
laravel의 앵커 태그를 클릭하면 페이지가 새 페이지로 라우팅되지 않음
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Laravel PHP Framework</title>
<style>
@import url(//fonts.googleapis.com/css?family=Lato:700);
body {
margin:0;
font-family:'Lato', sans-serif;
text-align:center;
color: #999;
}
.welcome {
width: 300px;
height: 200px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -150px;
margin-top: -100px;
}
a, a:visited {
text-decoration:none;
}
h1 {
font-size: 32px;
margin: 16px 0 0 0;
}
</style>
</head>
<body>
<div class="welcome">
<form action="POST">
User Name: <input type="text"><br>
Password: <input type="password"><br>
<input type="submit" value="Submit"><br>
<a href="register.php">Click here to register</a>
</form>
</div>
</body>
</html>
Registration code
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Laravel PHP Framework</title>
<style>
@import url(//fonts.googleapis.com/css?family=Lato:700);
body {
margin:0;
font-family:'Lato', sans-serif;
text-align:center;
color: #999;
}
.welcome {
width: 300px;
height: 200px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -150px;
margin-top: -100px;
}
a, a:visited {
text-decoration:none;
}
h1 {
font-size: 32px;
margin: 16px 0 0 0;
}
</style>
</head>
<body>
<div class="welcome">
<form action="POST">
First Name: <input type="text"><br>
Last Name: <input type="text"><br>
Password: <input type="password"><br>
Email id: <input type="email"><br>
<input type="submit" value="Submit"><br>
</form>
</div>
</body>
</html>
Routes.php
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/', function()
{
return View::make('hello');
});
Route::get('/register', function()
{
return View::make('register');
});
: 여기에 코드입니다 nchor 링크가 log in page
이면 등록 페이지로 리디렉션되지 않습니다. 그러나 localhost:8000
을 localhost:8000/register
으로 바꾸면 등록 페이지가 열립니다.
어떻게 해결할 수 있습니까?