我如何试用我的PHP代码来查看它是否有效? [英] How can I try my PHP code to see whether it works?

查看:197
本文介绍了我如何试用我的PHP代码来查看它是否有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个基本的联系表单(使用HTML和PHP)。我通常将我的网站作为GitHub上的gh页面托管。然而,该表单在GitHub上不起作用,因为GitHub不允许PHP,因为GitHub Pages是一个静态站点托管服务,并且不支持服务器端代码,例如PHP,Ruby或Python。



我的问题是:我如何试用我的代码来查看它是否有效?

这是代码。
Html:

 <!DOCTYPE html> 
< html>


< head>
< title>< / title>
< / head>
< body>

< form action =send_form_email.phpmethod =POST>
< input type =textname =nameplaceholder =Full Name>
< input type =textname =mailplaceholder =您的电子邮件>
< input type =textname =subjectplaceholder =Subject>