Test the following PHP code

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了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 或邮箱:[email protected]

微信:codehelp

脚本宝典总结

以上是脚本宝典为你收集整理的Test the following PHP code全部内容,希望文章能够帮你解决Test the following PHP code所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。