Pikachu2000 Posted November 2, 2010 Share Posted November 2, 2010 I reread it, you're right about it being in quotes, and I did criticize too quickly. However, although it's technically not incorrect, it is a source of confusion due to the inconsistency. Quote Link to comment https://forums.phpfreaks.com/topic/216966-can-someone-tell-me-why-my-php-code-wont-process/page/2/#findComment-1129655 Share on other sites More sharing options...
mjc302 Posted November 2, 2010 Share Posted November 2, 2010 Yes I admit I had to look to the rulebook myself Quote Link to comment https://forums.phpfreaks.com/topic/216966-can-someone-tell-me-why-my-php-code-wont-process/page/2/#findComment-1129656 Share on other sites More sharing options...
racercam Posted November 4, 2010 Author Share Posted November 4, 2010 Now, in reply to the original poster, after using what you posted for the form markup, I can tell you that the problem your having is because you have an extra blank <form> element at the beginning. If you remove that from the markup, and then use the processing code exactly how I posted it, your form should work. I have tested this on a live server and received the email fine. Thankyou! its now working perfect! Quote Link to comment https://forums.phpfreaks.com/topic/216966-can-someone-tell-me-why-my-php-code-wont-process/page/2/#findComment-1130323 Share on other sites More sharing options...
KevinM1 Posted November 4, 2010 Share Posted November 4, 2010 A more readable way of doing it would be to place the array variables within brackets inside the string. e.g.: $message = "Full Name: {$_POST['NAME']}\n Address: {$_POST['ADDRESS']}\n Town: {$_POST['TOWN']}\n Post Code: {$_POST['POSTCODE']}\n Phone Number: {$_POST['PHONE']}\n Email: {$_POST['email']}\n\n"; It keeps things in a format most expect, and eliminates little squabbles like this one. Quote Link to comment https://forums.phpfreaks.com/topic/216966-can-someone-tell-me-why-my-php-code-wont-process/page/2/#findComment-1130332 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.