Can I add a .php file URL to Blogger?

一曲冷凌霜 提交于 2019-12-24 17:06:46

问题


I would like to know if there's a way to add a .php file to a Blogger template using a direct link. I am unsure whether or not I can add it to my form action with a URL as Blogger does not support .php directly.

<form method="post" action="CAN_I_USE_A_URL_HERE?.php">

    <input name="Name" placeholder="Name*:"/>

    <input name="E-mail" type="email" placeholder="E-mail*:"/>

    <input name="Phone" type="email" placeholder="Phone:"/>

    <label>Write your message!</label>
    <textarea name="Message"></textarea>

    <input id="submit" name="submit" type="submit" value="submit"/>

</form>

回答1:


Blogger will not run server-side code.

You need to put your PHP code on some server that will run it for you, then make the <form> point to that.



来源:https://stackoverflow.com/questions/36684008/can-i-add-a-php-file-url-to-blogger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!