googleAdsense_widever


PHP - form submit PHP

// form_post.php
<html>
<head><title>form submit test</title></head>
<body>
<form action="form_receive.php" method='post'>
ID : <input type=text name="id"><br>
password : <input type=password name="pwd"><br>
<input type="submit" value="Login">
<input type="reset" value="re type"></form>
</body>
</html>

// form_receive.php
<?
echo "id=".$id."<br>";
echo "password=".$pwd;
?>


<html>
<head><title>form submit test</title></head>
<body>
<form action="form_receive.php" method='get'>
ID : <input type=text name="id"><br>
password : <input type=password name="pwd"><br>
<input type="submit" value="Login">
<input type="reset" value="re type"></form>
</body>
</html>

method를 get으로 바꾸면 url에 변수가 첨부된다.


덧글

댓글 입력 영역


공지

어서오십시오.
트위터 : @FCliver
기저심리학 : 네이버카페
카카오톡 : FCliver
페이스북 : Fredric Cliver

통계 위젯 (화이트)

1420
105
286340

접속자 위치