javascript - how to send parameter to a PHP to sort a DB -
how can connect html page send parameter php page should sort db through parameters?
basically have html form page drop down menu send name of db column. on php have tha code access db can't figure out how name , sort db through name (or variable or flag).
i tried
$name = $_post['nameofthehtmlformfield'];
but value of $name null if echo it.
plus, have no idea how communicate flag sort command in php
do have clue or resource can up?
thank you.
are sure want using $_post? understood post, want using $_get variable.
$_post sending data script, example web form
$_get used fetch value of parameter within url, example;
url: /examplescript.php?type=getdata&field=username echo $_get['type']; // outputs getdata echo $_get['field'] // outputs username
it seems issue script can't see why want use form link.
Comments
Post a Comment