Set HTML Form data into PHP Variables -


this question has answer here:

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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -