<form>
몇년 : <input type=txet name=assa><br>
몇월 : <input type=txet name=assa1><br>
몇일 : <input type=txet name=assa2><p>
<input type=submit value='전송'>
</form>
몇년 : <input type=txet name=assa><br>
몇월 : <input type=txet name=assa1><br>
몇일 : <input type=txet name=assa2><p>
<input type=submit value='전송'>
</form>
<?
if($assa==1990){
echo " 중세시대 ";
}
?>
if($assa==1990){
echo " 중세시대 ";
}
?>
텍스트에 1990이라는글자 입력하고 전송을 누르면 중세시대라고 밑에 뜨게할려는데 안되는이유가 먼가요? ㅠㅠ
댓글 17개
13년 전
echo " 중세시대\n아" ; 하면 안되나요?
13년 전
안되네요 ㅠㅠ;;
13년 전
<?
if($assa==1990){
echo " 중세시대<div>현대시대";
}
?>
if($assa==1990){
echo " 중세시대<div>현대시대";
}
?>
13년 전
안되요 ;
13년 전
잘되는데요?
ko1.puru.me/zz/1.php 들어가봐요
ko1.puru.me/zz/1.php 들어가봐요
13년 전
아 호스팅이랑 개인웹서버 차이인가보네요 ;;ㅋㅋ
13년 전
아니죠
13년 전
php는 서버에서 실행됩니다
그후 html들이 사용자한테 넘어가지요
저런구조로는 불가능합니다[하나의 파일일경우]
자바스크립트로 짜셔야되요
그후 html들이 사용자한테 넘어가지요
저런구조로는 불가능합니다[하나의 파일일경우]
자바스크립트로 짜셔야되요
13년 전
ㅠㅠ 자바스크립트을 모릅니다유 ㅠㅠ;
13년 전
1.php
<form action="2.php" method="post">
몇년 : <input type=txet name=assa><br>
몇월 : <input type=txet name=assa1><br>
몇일 : <input type=txet name=assa2><p>
<input type=submit value='전송'>
</form>
2.php
<?
if($assa==1990){
echo " 중세시대<div>현대시대";
}
?>
해보세요
<form action="2.php" method="post">
몇년 : <input type=txet name=assa><br>
몇월 : <input type=txet name=assa1><br>
몇일 : <input type=txet name=assa2><p>
<input type=submit value='전송'>
</form>
2.php
<?
if($assa==1990){
echo " 중세시대<div>현대시대";
}
?>
해보세요
13년 전
1.php
<form action="2.php" method="post">
몇년 : <input type=txet name=assa><br>
몇월 : <input type=txet name=assa1><br>
몇일 : <input type=txet name=assa2><p>
<input type=submit value='전송'>
</form>
2.php
<?
if($_GET[assa]==1990){
echo " 중세시대<div>현대시대";
}
?>
<form action="2.php" method="post">
몇년 : <input type=txet name=assa><br>
몇월 : <input type=txet name=assa1><br>
몇일 : <input type=txet name=assa2><p>
<input type=submit value='전송'>
</form>
2.php
<?
if($_GET[assa]==1990){
echo " 중세시대<div>현대시대";
}
?>
13년 전
if($_GET[assa]==1990){ 하는 이유가 있나요?
13년 전
아 실수햇네요
if($_POST[assa]==1990){
if($_POST[assa]==1990){
13년 전
아 ㅎㅎㅎ
13년 전
register_global
13년 전
댓글 남겨주신분들 너무 감사합니다^^
13년 전
action을 self로 하시면 하나의 파일에서.. 변수가 전달이 되지 않나요?
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 361 | ||
| 7929 | 9년 전 | 255 | ||
| 7928 | 9년 전 | 362 | ||
| 7927 | 9년 전 | 289 | ||
| 7926 | 9년 전 | 638 | ||
| 7925 | 9년 전 | 306 | ||
| 7924 | 9년 전 | 273 | ||
| 7923 | 9년 전 | 319 | ||
| 7922 | 9년 전 | 333 | ||
| 7921 | 9년 전 | 369 | ||
| 7920 | 9년 전 | 290 | ||
| 7919 | 9년 전 | 307 | ||
| 7918 | 9년 전 | 471 | ||
| 7917 | 9년 전 | 310 | ||
| 7916 | 9년 전 | 376 | ||
| 7915 | 9년 전 | 358 | ||
| 7914 | 9년 전 | 378 | ||
| 7913 | 9년 전 | 495 | ||
| 7912 | 9년 전 | 369 | ||
| 7911 | 9년 전 | 327 | ||
| 7910 | 9년 전 | 353 | ||
| 7909 | 9년 전 | 462 | ||
| 7908 | 9년 전 | 363 | ||
| 7907 | 9년 전 | 312 | ||
| 7906 | 9년 전 | 327 | ||
| 7905 | 9년 전 | 325 | ||
| 7904 | 9년 전 | 287 | ||
| 7903 | 9년 전 | 284 | ||
| 7902 | 9년 전 | 506 | ||
| 7901 |
|
9년 전 | 712 | |
| 7900 | 9년 전 | 536 | ||
| 7899 | 9년 전 | 341 | ||
| 7898 | 9년 전 | 336 | ||
| 7897 | 9년 전 | 293 | ||
| 7896 | 9년 전 | 312 | ||
| 7895 | 9년 전 | 419 | ||
| 7894 | 9년 전 | 345 | ||
| 7893 | 9년 전 | 269 | ||
| 7892 | 9년 전 | 316 | ||
| 7891 | 9년 전 | 701 | ||
| 7890 | 9년 전 | 1164 | ||
| 7889 | 9년 전 | 728 | ||
| 7888 |
limsy1987
|
9년 전 | 520 | |
| 7887 | 9년 전 | 499 | ||
| 7886 | 9년 전 | 375 | ||
| 7885 | 9년 전 | 355 | ||
| 7884 | 9년 전 | 361 | ||
| 7883 | 9년 전 | 338 | ||
| 7882 | 9년 전 | 353 | ||
| 7881 | 9년 전 | 378 | ||
| 7880 | 9년 전 | 506 | ||
| 7879 | 9년 전 | 410 | ||
| 7878 | 9년 전 | 1146 | ||
| 7877 | 9년 전 | 702 | ||
| 7876 | 9년 전 | 430 | ||
| 7875 | 9년 전 | 501 | ||
| 7874 |
|
9년 전 | 770 | |
| 7873 | 9년 전 | 479 | ||
| 7872 | 9년 전 | 603 | ||
| 7871 | 9년 전 | 439 | ||
| 7870 | 9년 전 | 560 | ||
| 7869 | 9년 전 | 383 | ||
| 7868 | 9년 전 | 369 | ||
| 7867 | 9년 전 | 374 | ||
| 7866 | 9년 전 | 430 | ||
| 7865 | 9년 전 | 392 | ||
| 7864 | 9년 전 | 452 | ||
| 7863 | 9년 전 | 444 | ||
| 7862 | 9년 전 | 421 | ||
| 7861 | 9년 전 | 585 | ||
| 7860 | 9년 전 | 591 | ||
| 7859 | 9년 전 | 360 | ||
| 7858 | 9년 전 | 668 | ||
| 7857 | 9년 전 | 1017 | ||
| 7856 | 9년 전 | 472 | ||
| 7855 | 9년 전 | 692 | ||
| 7854 | 9년 전 | 694 | ||
| 7853 | 9년 전 | 521 | ||
| 7852 | 9년 전 | 467 | ||
| 7851 | 9년 전 | 441 | ||
| 7850 | 9년 전 | 535 | ||
| 7849 | 9년 전 | 311 | ||
| 7848 | 9년 전 | 350 | ||
| 7847 | 9년 전 | 576 | ||
| 7846 | 9년 전 | 400 | ||
| 7845 | 9년 전 | 365 | ||
| 7844 | 9년 전 | 361 | ||
| 7843 | 9년 전 | 366 | ||
| 7842 | 9년 전 | 364 | ||
| 7841 | 9년 전 | 349 | ||
| 7840 | 9년 전 | 354 | ||
| 7839 | 9년 전 | 387 | ||
| 7838 | 9년 전 | 474 | ||
| 7837 | 9년 전 | 315 | ||
| 7836 | 9년 전 | 356 | ||
| 7835 | 9년 전 | 434 | ||
| 7834 |
|
9년 전 | 1167 | |
| 7833 | 9년 전 | 373 | ||
| 7832 | 9년 전 | 360 | ||
| 7831 | 9년 전 | 494 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기