Jump to content

Pass variables into form but still use POST to submit


blommer

Recommended Posts

Hi, I have a form that I want to input variables from a URL into its textboxes but still submit the form manually via POST.

 

Here is my form right now:

 

<?php
echo '<br>' ;
echo '<form method="post" action="index.php">' ;
echo 'School: <input name="school_name" id="school_name" type="text"><br>' ;
echo '<br>' ;
echo 'City: <input name="city_name" id="city_name" type="text"><br>' ;
echo '<br>' ;
echo '<input name="send" id="send" type="submit" value="Enter">' ;
echo '</form>' ;
?>

 

To fill the textboxes I would like the to be able to type a url like:

 

http://www.templeton.com/schools.php?&school_name=Jenkins&city_name=Chicago

 

and be able to fill the form with "Jenkins" and "Chicago." Any ideas on how to do this?

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.