Jump to content

Set form location with select list


johnrb87

Recommended Posts

Hi

 

Is it possible with the form below

 

<form method="post" name="people" id="people">

<input name="name" id="name">

<select name="location" id="location">

<option value="send_user.php">user</option>

<option value="send_staff.php">staff</option>

</form>

 

to post the form to the selected URL from the list.

 

So if I select "user", the form will post to

 

"send_user.php"

 

and if I select "staff", the form will post to

 

"send_staff.php"

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/241708-set-form-location-with-select-list/
Share on other sites

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.