加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

Test the following PHP code

发布时间:2020-12-13 21:31:44 所属栏目:PHP教程 来源:网络整理
导读: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/


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 或邮箱:[email?protected]

微信:codehelp

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读