Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Commonmark migration
Source Link

Try this:

<form method="post" action="check.php">
 <select name="website_string">
 <option value="" selected="selected"></option>
 <option VALUE="abc"> ABC</option>
 <option VALUE="def"> def</option>
 <option VALUE="hij"> hij</option>
 </select>
 <input TYPE="submit" name="submit" />
</form>

Both your select control and your submit button had the same name attribute, so the last one used was the submit button when you clicked it. All other syntax errors aside.

###check.php

check.php

<?php
 echo $_POST['website_string'];
?>

Obligatory disclaimer about using raw $_POST data. Sanitize anything you'll actually be using in application logic.

Try this:

<form method="post" action="check.php">
 <select name="website_string">
 <option value="" selected="selected"></option>
 <option VALUE="abc"> ABC</option>
 <option VALUE="def"> def</option>
 <option VALUE="hij"> hij</option>
 </select>
 <input TYPE="submit" name="submit" />
</form>

Both your select control and your submit button had the same name attribute, so the last one used was the submit button when you clicked it. All other syntax errors aside.

###check.php

<?php
 echo $_POST['website_string'];
?>

Obligatory disclaimer about using raw $_POST data. Sanitize anything you'll actually be using in application logic.

Try this:

<form method="post" action="check.php">
 <select name="website_string">
 <option value="" selected="selected"></option>
 <option VALUE="abc"> ABC</option>
 <option VALUE="def"> def</option>
 <option VALUE="hij"> hij</option>
 </select>
 <input TYPE="submit" name="submit" />
</form>

Both your select control and your submit button had the same name attribute, so the last one used was the submit button when you clicked it. All other syntax errors aside.

check.php

<?php
 echo $_POST['website_string'];
?>

Obligatory disclaimer about using raw $_POST data. Sanitize anything you'll actually be using in application logic.

Try this:

<form method="post" action="check.php">
 <select name="website_string">
 <option value="" selected="selected"></option>
 <option VALUE="abc"> ABC</option>
 <option VALUE="def"> def</option>
 <option VALUE="hij"> hij</option>
 </select>
 <INPUT<input TYPE="submit" name="submit" />
</form>

Both your select control and your submit button had the same name attribute, so the last one used was the submit button when you clicked it. All other syntax errors aside.

###check.php

<?php
 echo $_POST['website_string'];
?>

Obligatory disclaimer about using raw $_POST data. Sanitize anything you'll actually be using in application logic.

Try this:

<form method="post" action="check.php">
 <select name="website_string">
 <option value="" selected="selected"></option>
 <option VALUE="abc"> ABC</option>
 <option VALUE="def"> def</option>
 <option VALUE="hij"> hij</option>
 </select>
 <INPUT TYPE="submit" name="submit" />
</form>

Both your select control and your submit button had the same name attribute, so the last one used was the submit button when you clicked it. All other syntax errors aside.

###check.php

<?php
 echo $_POST['website_string'];
?>

Obligatory disclaimer about using raw $_POST data. Sanitize anything you'll actually be using in application logic.

Try this:

<form method="post" action="check.php">
 <select name="website_string">
 <option value="" selected="selected"></option>
 <option VALUE="abc"> ABC</option>
 <option VALUE="def"> def</option>
 <option VALUE="hij"> hij</option>
 </select>
 <input TYPE="submit" name="submit" />
</form>

Both your select control and your submit button had the same name attribute, so the last one used was the submit button when you clicked it. All other syntax errors aside.

###check.php

<?php
 echo $_POST['website_string'];
?>

Obligatory disclaimer about using raw $_POST data. Sanitize anything you'll actually be using in application logic.

Copy edited.
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 110
  • 134

tryTry this:

<form method="post" action="check.php">
 <select name="website_string">
 <option value="" selected="selected"></option>
 <option VALUE="abc"> ABC</option>
 <option VALUE="def"> def</option>
 <option VALUE="hij"> hij</option>
 </select>
 <INPUT TYPE="submit" name="submit" />
</form>

Both your select control and your submit button had the same name attribute, so the last one used was the submit button when you clicked it. All other syntax errors aside.

check###check.php

<?php
 echo $_POST['website_string'];
?>

Obligatory disclaimer about using raw $_POST data. Sanitize anything you'll actually be using in application logic.

try this

<form method="post" action="check.php">
 <select name="website_string">
 <option value="" selected="selected"></option>
 <option VALUE="abc"> ABC</option>
 <option VALUE="def"> def</option>
 <option VALUE="hij"> hij</option>
 </select>
 <INPUT TYPE="submit" name="submit" />
</form>

Both your select control and your submit button had the same name attribute, so the last one used was the submit button when you clicked it. All other syntax errors aside.

check.php

<?php
 echo $_POST['website_string'];
?>

Obligatory disclaimer about using raw $_POST data. Sanitize anything you'll actually be using in application logic.

Try this:

<form method="post" action="check.php">
 <select name="website_string">
 <option value="" selected="selected"></option>
 <option VALUE="abc"> ABC</option>
 <option VALUE="def"> def</option>
 <option VALUE="hij"> hij</option>
 </select>
 <INPUT TYPE="submit" name="submit" />
</form>

Both your select control and your submit button had the same name attribute, so the last one used was the submit button when you clicked it. All other syntax errors aside.

###check.php

<?php
 echo $_POST['website_string'];
?>

Obligatory disclaimer about using raw $_POST data. Sanitize anything you'll actually be using in application logic.

added 131 characters in body
Source Link
jondavidjohn
  • 62.5k
  • 21
  • 121
  • 159
Loading
edited body
Source Link
jondavidjohn
  • 62.5k
  • 21
  • 121
  • 159
Loading
added 14 characters in body
Source Link
jondavidjohn
  • 62.5k
  • 21
  • 121
  • 159
Loading
added 84 characters in body
Source Link
jondavidjohn
  • 62.5k
  • 21
  • 121
  • 159
Loading
Source Link
jondavidjohn
  • 62.5k
  • 21
  • 121
  • 159
Loading
default

AltStyle によって変換されたページ (->オリジナル) /