联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> javajava

日期:2019-08-22 11:08

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.

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.



版权所有:留学生程序网 2020 All Rights Reserved 联系方式:QQ:99515681 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。