byvafa
کاربر تازه وارد
- تاریخ عضویت
- 7 آپریل 2005
- نوشتهها
- 175
- لایکها
- 0
آیا این کد ساده که اطلاعات رو از یه فروم به اکریپت php ارسال میکنه اشکالی داره که جواب نمیده ؟
کد فرم html :
کد اسکریپت php :
با php نسخه های 4 و 5 امتحان کردم
اشکالش کجاست ؟
کد فرم html :
کد:
<html>
<head>
<title>HTML Form</title>
</head>
</body>
<form action="handleform.php" method=post>
First name <input type=text name="firstname" size=20><br>
Last Name <input type=text name="lastname" size=40><br>
E-mail Address <input type=text name="email" size=60><br>
Comments <textarea name="comments" rows=5 cols=40></textarea><br>
<input type=submit value=post name=submit> 
<input type=reset name=reset value=reset>
</form>
</body>
</html>
کد اسکریپت php :
کد:
<html>
<head>
<title>Form Relts</title>
</head>
<body>
<?php
echo "your First Name is : $firstname. <br>\n";
echo "your Last Name is : $lastname <br>\n";
echo "your e-mail address is : $email <br>\n";
echo "This is what you had to say : $comments <br>\n";
?>
</body>
</html>
با php نسخه های 4 و 5 امتحان کردم
اشکالش کجاست ؟