小编Jro*_*rod的帖子

将onchange函数下拉到html中

我想使用Dropdown onchange函数进入html传递值,它在提交按钮中工作正常,但我想使用Dropdown onchange,请帮忙怎么做?

<form method="post" action=" ">
    <div align="center">
        <select name="value">
            <option value="">Show Value</option><br />
            <option value="2"> 2  </option><br />
            <option value="5"> 5  </option><br />
            <option value="10"> 10 </option><br />
            <option value="20"> 20 </option><br />
        </select>
        <input type="submit" name="submit" value="Submit">
    </div>
</form>
Run Code Online (Sandbox Code Playgroud)

html javascript

5
推荐指数
1
解决办法
2万
查看次数

为什么我的PHP联系表格不起作用?(php新手)

根据我的了解,我的contact.html文件以及我的_contact.php文件中的所有内容都正常,但出于某种原因,我一直收到Chrome错误消息"...可能已关闭或配置不正确".

这是代码,任何帮助表示赞赏.

联系表格在contact.html中:

     <div class="ctext5">
    <br />
          <form id="form1" name="form1" method="post" action="_contact.php">
  <table width="557" border="0" cellspacing="10">
      <tr>
        <th width="234" scope="row"><label for="firstname">First Name:</label></th>
        <td width="545"><input type="text" name="firstname" id="firstname" /></td>
      </tr>
      <tr>
        <th scope="row"><label for="lastname">Last Name:</label></th>
        <td><input type="text" name="lastname" id="lastname" /></td>
      </tr>
      <tr>
      </tr>
      <tr>
        <th scope="row"><label for="_email">E-Mail:</label></th>
        <td><input type="text" name="_email" id="_email" /></td>
      </tr>
      <tr>
        <th scope="row"><label for="address">Address:</label></th>
        <td><input type="text" name="address" id="address" /></td>
      </tr>
      <tr>
        <th scope="row"><label for="cityzip">City/Zip:</label></th>
        <td><input type="text" name="cityzip" id="cityzip" /></td>
      </tr>
      <tr>
        <th scope="row"><label for="phone">Phone #:</label></th>
        <td><input type="text" name="phone" …
Run Code Online (Sandbox Code Playgroud)

php forms

0
推荐指数
1
解决办法
800
查看次数

我无法想象如何使这个PHP形式工作

我无法想象如何使这个简单的PHP表单起作用.我做错了什么?

  <?php
$first = "firstNumber";
$second = "secondNumber";
$second * $first = "calc";
$calc = "calc";
echo("" . $_GET['$calc'] . "<br />\n");
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title></title>
    </head>
    <body>
        <form action="new.php" method="get">
        <input type="text" name="firstNumber" id="first">
        <input type="text" name="secondNumber" id="second">
        <input style="background-color: #0094ff;" type="submit" name="calc" value="???" id="second">
        </form>
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

php forms simple-form

-1
推荐指数
1
解决办法
88
查看次数

标签 统计

forms ×2

php ×2

html ×1

javascript ×1

simple-form ×1