How to get information from user using PHP?
Gen A asked:
hello, i’m new to php, i now know how to create forms and simple programs but how to i retrieve data from a user.. for example i want to make a form with two text boxes, and a submit button and when the user fills those text boxes the informatoin automatically gets to me.. but i do not now how people get the information from users? is it posible to sent it to email or something? thanks
Marc
hello, i’m new to php, i now know how to create forms and simple programs but how to i retrieve data from a user.. for example i want to make a form with two text boxes, and a submit button and when the user fills those text boxes the informatoin automatically gets to me.. but i do not now how people get the information from users? is it posible to sent it to email or something? thanks
Marc













6 Responses to “How to get information from user using PHP?”
If you mean ‘you’ personally, not your php program, yes, use php’s mail() function to send email.
An email with php httpus2phpnetfunctionmail usually though user input is either immediately used or written to.
An email with php httpus2phpnetfunctionmail usually though user input is either immediately used or written to database such as mysql.
For form processing here httpphpresourceindexcomcomplete_scriptsform_processing.
HTML FORM to EMAIL (Php)
Your index.html file:
Your name:
Your password:
Your email:
(replace by their correct form - stupid editor!)
Your emailfwd.php file:
For you can enable email supportdzsoundnirvanacom or download it below instillation notes are the bottom of this.
Here’s a simple mail form..