「PHP」post方式で値を送信するサンプル

書式
method="post" action="xxx"
サンプルコード

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<form method="post" action="regform.php">
<input type="text" name="username">
<input type="text" name="password">
<input type="submit" value="登録">
</form>
<form method="post" action="regform.php"> <input type="text" name="username"> <input type="text" name="password"> <input type="submit" value="登録"> </form>
<form method="post" action="regform.php">
  <input type="text" name="username">
    <input type="text" name="password">
  <input type="submit" value="登録">
</form>

 

PHP

Posted by arkgame