Test the following PHP code


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

上一篇:cg数据类型


下一篇:Redis的各项功能解决了哪些问题?