After virtually, bending over backwards, I managed to FINALLY got the SMTP e-mail making it possible to actually receive the data entered by viewers in my Contact form.
Its code (in .txt) can be seen from:
http://members.lycos.co.uk/darsh25/AllInclusiveWebDesign/contact.php.txt
Actual page can be viewed on:
http://members.lycos.co.uk/darsh25/AllInclusiveWebDesign/contact.php
Sadly, however, I was only receiving the "message" itself & NOT the "title", "first_name", "last_name", "contact_no.", etc.
I realised that I didn't include other field WITHIN php's "mail" function & hence wasn't gettting this on my e-mail (after user submits the form).
I've now added "additional parameters" (if I'm right), so as to receive all the required fields. Firstly, I'm unsure if what I've added is right or wrong & secondly, I'm getting some "syntax" error.
So, the 1st version of this PHP "mail" code was:
(mail("contact@allinclusivewebdesign.byethost13.com", $_POST['inquiry'], stripslashes($_POST['message']), "From: " . $_POST['email']))
The revised version i.e. the one where I've added "additional parameters", so as to receive ALL fields in my e-mail:
(mail("contact@allinclusivewebdesign.byethost13.com",
$_POST['inquiry'],
stripslashes($_POST['message']),
("From: " . $_POST['email']),
("Inquiry: " . $_POST['inquiry']),
("Title: " . $_POST['title']),
("First Name: " . $_POST['first_name']),
("Last Name: " . $_POST['last_name']),
("E-mail: " . $_POST['email']),
("Phone: " . $_POST['phone']),
("Message: " . $_POST['message']),
("Reply: " . $_POST['reply']),
("Contact: " . $_POST['contact']))
I wonder, hence, if anyone around could possily check my "updated" code, which is:
http://members.lycos.co.uk/darsh25/AllInclusiveWebDesign/contact_updated.php.txt
I simply wish to receive ALL the fields data on my e-mail.