Jump to content

Drop-Down Menu PHP Form Handler


DanFTW

Recommended Posts

I'm not sure you've explained what it is you're trying to do, but I'll take a guess.

 

You have a form with a select named wombat and when the form data are sent to form-handler.php you want to display the selected value of the variable named wombat.

 

Assuming your form method is post ...

 

<?php
// form-handler.php
$wombat = $_POST['wombat']; // retrieved POSTed data
echo "You chose ". $wombat; // display chosen value
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.