Set HTML Form data into PHP Variables -
this question has answer here:
- html form post php page [closed] 2 answers
this basic, still...
how create html form then, upon clicking enter button, sets text inside of field php variable, used somewhere else on page?
php server-side language, have remember although php , html on same page, processed in different locations (server , client).
the php interpreter processes .php file , runs code between <?php ?>
tags. resulting processed html code sent client of client side processing can take place (css, js, html..).
so when submit form, send form data server in can access form elements $_get[]
, $_post[]
arrays depending on if form's method or post.
to see arrays carry, print them out print_r($_get);
but agree looking @ basic php tutorials online basics down can understand what's going on.
Comments
Post a Comment