提交时使用php发送电子邮件的HTML表单(谷歌云服务器)
我正在运行一个php脚本,该脚本应该在提交表单时发送电子邮件。当我提交表单时,我收到以下错误提交时使用php发送电子邮件的HTML表单(谷歌云服务器),php,html,web,google-cloud-platform,webserver,Php,Html,Web,Google Cloud Platform,Webserver,我正在运行一个php脚本,该脚本应该在提交表单时发送电子邮件。当我提交表单时,我收到以下错误 This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error><Code>InvalidArgument</Code><Message>Invalid argumen
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error><Code>InvalidArgument</Code><Message>Invalid argument.</Message><Details>Missing file part</Details></Error>
这是我的html代码
<html lang="en">
<head>
<script src="email_me.php"></script>
<meta charset="utf-8">
</head>
<section class="contact_us1">
<form action="email_me.php" method="post" role="form" aria-label="contact form" enctype="multipart/form-data">
<div>
<input id="field1" aria-invalid="false" name="Name" value="" placeholder="Name" data-aid="nameField" type="text" required>
<input id="field2" aria-invalid="false" name="Email" value="" placeholder="Email" data-aid="emailField" type="text" required>
<input id="field4" aria-invalid="false" name="Subject" value="" placeholder="Subject" data-aid="subjectField" type="text">
</div>
<textarea name="Message" class="message" placeholder="Message" data-aid="messageField" ></textarea>
<button type="submit" >Send</button>
</form>
</section>
因为它与这个域冲突
Type Name Data TTl
CNAME www c.storage.googleapis.com 600 sec
当我将cname记录更改为ghs记录时,我收到以下错误
<Error>
<Code>InvalidArgument</Code>
<Message>Invalid argument.</Message>
<Details>The requested project was not found.</Details>
</Error>
很抱歉,这个编辑让人很困惑,我完全搞不清楚我一直在用谷歌云做什么。我在存储桶中有一个项目,在应用程序引擎中有另一个项目,但我不知道如何在应用程序引擎中显示我的html,也不知道如何从存储桶中执行我的php项目
这是我在godaddy的DNS设置的图片
我的php清单的图片
电子邮件桶的图片
还有一张在自定义网址下列出的DNS设置谷歌云的图片
您的服务器不允许执行PHP脚本,并将其呈现为文本。请向服务器提供商咨询如何解决此问题 您的服务器不允许执行PHP脚本,并将其呈现为文本。请向服务器提供商咨询如何解决此问题 服务器是谷歌云中的一个bucket。你能推荐一些谷歌云或php以外的东西吗?我想在服务器端做一些事情,因为我知道我将来无论如何都要在服务器上执行东西。谷歌云存储可以托管静态文件,它不会执行.php文件。您可能想在谷歌云中查看PHP托管选项Platform@Matt-呃,我发布了一个编辑,我试图尽我所能解释它,但我真的很困惑什么是必要的信息,什么不是,我真正知道的是,我无法让网页工作。服务器是谷歌云中的一个桶。你能推荐一些谷歌云或php以外的东西吗?我想在服务器端做一些事情,因为我知道我将来无论如何都要在服务器上执行东西。谷歌云存储可以托管静态文件,它不会执行.php文件。您可能想在谷歌云中查看PHP托管选项Platform@Matt-呃,我贴了一个编辑,我试图尽我所能解释它,但我真的很困惑,什么是必要的信息,什么不是,我真正知道的是,我不能让网页工作。
Type Name Data TTl
CNAME www c.storage.googleapis.com 600 sec
<Error>
<Code>InvalidArgument</Code>
<Message>Invalid argument.</Message>
<Details>The requested project was not found.</Details>
</Error>