jeudi 18 février 2016

List of query result in a form and know the submit

I'm try to do a WP plugin.

I have a functions.php and here have a function to know the name of the countries (`Select name_countries From Countries) to take only the names.

And I use the names to create diferents form with a button (more information), like this:

Spain |information|
France|information|
Italy |information|
foreach ( $pais as $pais) {
    echo "<form method='post' action='' id='form_paises'>";
    echo "<input type='text' id='v_name' value='".$pais->name."' placeholder='v_name' disabled/>";
    echo "<input type='submit' name='' value='Información' />";
    echo "</form>";
}

But I don't know how to send the name of the country to the function php to do a new select using this country to get more information of this country.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire