phpnoob90 Posted June 13, 2007 Share Posted June 13, 2007 hi i am trying to view the source code of a php page but when i view the page source it comes up with "&errormessage=Please fill in all fields and send again.&", i am trying to create a form to email box for my own website and have found one on a website i like, i am trying to get the php code but dont know how to get it to be displayed, can anybody help??? help will be much appreciated, thanks a lot x this is the php page in which code i am trying to view http://www.dbycm.com/contactus.php Quote Link to comment https://forums.phpfreaks.com/topic/55413-solved-please-help-view-php-source-code/ Share on other sites More sharing options...
Yesideez Posted June 13, 2007 Share Posted June 13, 2007 You can't view the source to a PHP script when using "View Source" from your browser as all you're getting is anything that the PHP generates and then sends to the browser. Quote Link to comment https://forums.phpfreaks.com/topic/55413-solved-please-help-view-php-source-code/#findComment-273848 Share on other sites More sharing options...
phpnoob90 Posted June 13, 2007 Author Share Posted June 13, 2007 is there any way i can view the php script? thanks Quote Link to comment https://forums.phpfreaks.com/topic/55413-solved-please-help-view-php-source-code/#findComment-273852 Share on other sites More sharing options...
obsidian Posted June 13, 2007 Share Posted June 13, 2007 You have to have a physical copy of the script from the creator to view the source. Because PHP is parsed by the server, none of it ever gets to the browser. Quote Link to comment https://forums.phpfreaks.com/topic/55413-solved-please-help-view-php-source-code/#findComment-273855 Share on other sites More sharing options...
phpnoob90 Posted June 13, 2007 Author Share Posted June 13, 2007 okay thanks a lot for your help, does anyone no of any websites that will have scripts for a form that sends to your email address, i tried one called formtoemail but it never sent the text to my email address and yes i did change the email address to my own in the php script before anybody asks a script that makes the fields required and has validation to make sure the email address is a valid email address would be fabulous Thanks x Quote Link to comment https://forums.phpfreaks.com/topic/55413-solved-please-help-view-php-source-code/#findComment-273858 Share on other sites More sharing options...
trq Posted June 13, 2007 Share Posted June 13, 2007 It wouldn't be too difficult to write your own. Take a look at the man entry for php's mail function. Quote Link to comment https://forums.phpfreaks.com/topic/55413-solved-please-help-view-php-source-code/#findComment-273884 Share on other sites More sharing options...
obsidian Posted June 13, 2007 Share Posted June 13, 2007 Take a good read through this tutorial and see if it helps you out. Quote Link to comment https://forums.phpfreaks.com/topic/55413-solved-please-help-view-php-source-code/#findComment-273885 Share on other sites More sharing options...
smc Posted June 13, 2007 Share Posted June 13, 2007 Yeah I agree with Thorpe, you can google and find quite a few free form scripts but you won't understand it so if something breaks you can't fix it. On the other hand there are literally hundreds of tutorials online just aimed at how to do it. Just google "php form mail" and that will give you a large push on the right track. And while your creating it remember we can help you here if you hit any bumps in the road Quote Link to comment https://forums.phpfreaks.com/topic/55413-solved-please-help-view-php-source-code/#findComment-273888 Share on other sites More sharing options...
phpnoob90 Posted June 13, 2007 Author Share Posted June 13, 2007 thanks a lot you've been a great help, i am just about to read through the tutorial posted by obsidian im sure ill be back with more questions soon thanks for now Quote Link to comment https://forums.phpfreaks.com/topic/55413-solved-please-help-view-php-source-code/#findComment-274022 Share on other sites More sharing options...
obsidian Posted June 13, 2007 Share Posted June 13, 2007 thanks a lot you've been a great help, i am just about to read through the tutorial posted by obsidian im sure ill be back with more questions soon thanks for now I'm marking this thread *SOLVED*, but when you come back with specific coding questions, please feel free to start another relevant thread. Quote Link to comment https://forums.phpfreaks.com/topic/55413-solved-please-help-view-php-source-code/#findComment-274039 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.