<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로 하시면 하나의 파일에서.. 변수가 전달이 되지 않나요?
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8030 | 9년 전 | 419 | ||
| 8029 | 9년 전 | 344 | ||
| 8028 | 9년 전 | 299 | ||
| 8027 | 9년 전 | 314 | ||
| 8026 | 9년 전 | 386 | ||
| 8025 | 9년 전 | 414 | ||
| 8024 | 9년 전 | 402 | ||
| 8023 | 9년 전 | 427 | ||
| 8022 | 9년 전 | 343 | ||
| 8021 | 9년 전 | 366 | ||
| 8020 | 9년 전 | 369 | ||
| 8019 | 9년 전 | 384 | ||
| 8018 | 9년 전 | 481 | ||
| 8017 | 9년 전 | 565 | ||
| 8016 | 9년 전 | 390 | ||
| 8015 | 9년 전 | 426 | ||
| 8014 | 9년 전 | 355 | ||
| 8013 | 9년 전 | 275 | ||
| 8012 | 9년 전 | 275 | ||
| 8011 | 9년 전 | 480 | ||
| 8010 | 9년 전 | 335 | ||
| 8009 | 9년 전 | 351 | ||
| 8008 | 9년 전 | 323 | ||
| 8007 | 9년 전 | 469 | ||
| 8006 | 9년 전 | 505 | ||
| 8005 |
|
9년 전 | 1000 | |
| 8004 | 9년 전 | 391 | ||
| 8003 | 9년 전 | 460 | ||
| 8002 | 9년 전 | 358 | ||
| 8001 |
|
9년 전 | 701 | |
| 8000 | 9년 전 | 460 | ||
| 7999 | 9년 전 | 409 | ||
| 7998 | 9년 전 | 468 | ||
| 7997 | 9년 전 | 341 | ||
| 7996 | 9년 전 | 570 | ||
| 7995 | 9년 전 | 526 | ||
| 7994 | 9년 전 | 407 | ||
| 7993 | 9년 전 | 477 | ||
| 7992 | 9년 전 | 553 | ||
| 7991 | 9년 전 | 302 | ||
| 7990 | 9년 전 | 330 | ||
| 7989 | 9년 전 | 334 | ||
| 7988 | 9년 전 | 763 | ||
| 7987 | 9년 전 | 467 | ||
| 7986 | 9년 전 | 469 | ||
| 7985 | 9년 전 | 549 | ||
| 7984 | 9년 전 | 466 | ||
| 7983 | 9년 전 | 700 | ||
| 7982 | 9년 전 | 561 | ||
| 7981 | 9년 전 | 518 | ||
| 7980 | 9년 전 | 540 | ||
| 7979 | 9년 전 | 531 | ||
| 7978 | 9년 전 | 492 | ||
| 7977 | 9년 전 | 437 | ||
| 7976 | 9년 전 | 894 | ||
| 7975 | 9년 전 | 409 | ||
| 7974 | 9년 전 | 456 | ||
| 7973 | 9년 전 | 638 | ||
| 7972 | 9년 전 | 427 | ||
| 7971 | 9년 전 | 503 | ||
| 7970 | 9년 전 | 343 | ||
| 7969 | 9년 전 | 588 | ||
| 7968 | 9년 전 | 433 | ||
| 7967 | 9년 전 | 415 | ||
| 7966 | 9년 전 | 423 | ||
| 7965 |
|
9년 전 | 1052 | |
| 7964 | 9년 전 | 439 | ||
| 7963 | 9년 전 | 447 | ||
| 7962 | 9년 전 | 448 | ||
| 7961 |
전갈자리남자
|
9년 전 | 542 | |
| 7960 | 9년 전 | 1008 | ||
| 7959 | 9년 전 | 587 | ||
| 7958 | 9년 전 | 438 | ||
| 7957 | 9년 전 | 395 | ||
| 7956 | 9년 전 | 399 | ||
| 7955 | 9년 전 | 498 | ||
| 7954 | 9년 전 | 435 | ||
| 7953 | 9년 전 | 485 | ||
| 7952 | 9년 전 | 405 | ||
| 7951 | 9년 전 | 534 | ||
| 7950 | 9년 전 | 436 | ||
| 7949 | 9년 전 | 425 | ||
| 7948 | 9년 전 | 363 | ||
| 7947 | 9년 전 | 982 | ||
| 7946 | 9년 전 | 496 | ||
| 7945 | 9년 전 | 436 | ||
| 7944 | 9년 전 | 499 | ||
| 7943 | 9년 전 | 431 | ||
| 7942 | 9년 전 | 442 | ||
| 7941 | 9년 전 | 433 | ||
| 7940 | 9년 전 | 938 | ||
| 7939 | 9년 전 | 423 | ||
| 7938 | 9년 전 | 442 | ||
| 7937 | 9년 전 | 329 | ||
| 7936 | 9년 전 | 916 | ||
| 7935 | 9년 전 | 529 | ||
| 7934 | 9년 전 | 508 | ||
| 7933 | 9년 전 | 627 | ||
| 7932 | 9년 전 | 573 | ||
| 7931 | 9년 전 | 629 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기