简体   繁体   English

如何处理下拉菜单( <select> )菜单中的.php文件?

[英]How to process a drop-down (<select>) menu in a .php file?

I'm working on a splitted "landing page": 我正在处理拆分的“目标网页”:

http://aquila-test.nowcommu.myhostpoint.ch/ http://aquila-test.nowcommu.myhostpoint.ch/

As you can see there are 2 differents contact-forms. 如您所见,有两种不同的联系表。 What I want to do is to insert into the "recived mail" (the one from the .php file) the choice from the "drop-down" menu. 我要做的是将“下拉菜单”中的选择插入“已接收邮件”(来自.php文件的邮件)中。 Basically I want to process that choice, because into the "recived-mail" I can only see information about Name, Email and the message. 基本上,我想处理该选择,因为在“已接收邮件”中,我只能看到有关名称,电子邮件和邮件的信息。

HTML: HTML:

<form method="POST" name="contactform" action="contact-form-handler.php">
   <select>
      <option value="1">Bitte rufen Sie mich an zur Kontaktaufnahme</option>
      <option value="2">Ich wünsche eine Rohbaubesichtigung</option>
      <option value="3">Ich wünsche eine Präsentation über AQUILA bei mir im Hause</option>
      <option value="4">Bitte senden Sie mir die umfassende Broschüre</option>
      <option value="5">Bitte mailen Sie mir detailliertere Unterlagen über AQUILA</option>
   </select>
   <p>
      <input type="text" name="name" placeholder="Name und Vorname">
   </p>
   <p>
      <input type="text" name="email" placeholder="E-Mail"> <br>
   </p>
   <p>
      <input type="text" name="betreff" placeholder="Betreff"> <br>
   </p>
   <p>
      <textarea name="message" placeholder="Nachricht"></textarea>
   </p>
   <input type="submit" value="Senden"><br>
</form>
<form method="POST" name="contactform" action="contact-form-handler.php">
   <select>
      <option value="5">Bitte senden Sie mir die umfassende Broschüre</option>
      <option value="6">Bitte mailen Sie mir detailliertere Unterlagen über das Wohnen im AQUILA</option>
   </select>
   <p>
      <input type="text" name="name" placeholder="Name und Vorname">
   </p>
   <p>
      <input type="text" name="email" placeholder="E-Mail"> <br>
   </p>
   <p>
      <input type="text" name="betreff" placeholder="Betreff"> <br>
   </p>
   <p>
      <textarea name="message" placeholder="Nachricht"></textarea>
   </p>
   <input type="submit" value="Senden"><br>
</form>

给选择一个名字:

<select name="xyz">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM