May 16, 201214 yr I know how to create a form for a website (name, message, radio/check buttons, submit message button, etc), but I do not know how to allow the user send the information to me by clicking the "submit" button? So I know how to create a form in HTML, style it with CSS, but how do I make the user send it to me by clicking the submit form? Thanks! Edited May 16, 201214 yr by Digitalme
May 16, 201214 yr PHP. This is the most basic snippet: <? $to = 'you@yourdomain.com'; $subject = 'Website subject'; foreach($_POST as $field => $val){ $body .= "$field: $val\n"; } mail($to, $subject, $body);
May 16, 201214 yr I always use this: Link You can just use the process part from the tutorial Edited May 16, 201214 yr by RowruffDesign
Create an account or sign in to comment