首页 > Windows开发 > 详细

Test the following PHP code

时间:2019-08-24 20:20:34      阅读:135      评论:0      收藏:0      [点我收藏+]


Practical Lab 3
Q1. Test the following PHP codes:
1.Copy and save as 2 files, a.html and b.php, respectively.
2.Put them under your student folder, and change the permission as 755.

PHP codes作业代写
3.Browse titan.csit.rmit.edu.au/~sXXXXXXX/a.html (where XXXXXXX is your student id).

a.html
<html>
<body>
<FORM ACTION="b.php" method="POST">
Enter: <input type="text" name="entered" id="entered"/>
<br/><br/>
<button type="submit">Submit</button>
</FORM>

</body>
</html>
---------------------------------------------------------------------------------------------------------------------------------------
b.php
<html>
<body>
<?php echo $_POST[‘entered‘]; ?>
</body>
</html>

Q2. Based on Q2 and Lab 2 Q3 (need to change the ACTION of the form as Q1), write your own PHP page to receive your submission data and return the right page shown below:

Hinds: 1. ACTION = the name of your php page.
2. Using <?php … ?> tags
3. Echo the element (PHP page) based on the name=”…” and id=”…” from the HTLM form.

 

因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com

微信:codehelp

Test the following PHP code

原文:https://www.cnblogs.com/blogjava1/p/11405607.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!