Search found 10 matches

by lhcpr
Wed Jul 30, 2008 6:18 pm
Forum: PHP - Code
Topic: Validation and sanitisation of PHP code
Replies: 2
Views: 257

Re: Validation and sanitisation of PHP code

Thanks for the feedback Twayne, My server is running PHP version 5.25. I can appreciate your requirements for your site impaired visitors; I used to have much to do with the blind school in Indianapolis. But at this point, given my PHP experience and usage requirements, I think I may not be as thoug...
by lhcpr
Tue Jul 29, 2008 7:54 pm
Forum: PHP - Code
Topic: Validation and sanitisation of PHP code
Replies: 2
Views: 257

Validation and sanitisation of PHP code

Hello all, I have been fortunate enough to learn a personal experience with regards to the abuse of an html form because I did not take into consideration sufficient security measure; one of these being input validation!!! A total PHP newbie, I have learnt my lesson and attempted to rectify the prob...
by lhcpr
Thu Jul 03, 2008 11:09 pm
Forum: PHP - Code
Topic: Error in my php code: mail function
Replies: 10
Views: 761

Re: Error in my php code: mail function

Hi Califdon - thanks for the tips. I thought that it would be too obvious just to be able to hit the return key! Not to be 8O Will give your suggestions a try. With regards to security, form fields are validated from the form-html level I believe. With regards to regex to validate email, I need to b...
by lhcpr
Thu Jul 03, 2008 1:12 am
Forum: PHP - Code
Topic: Error in my php code: mail function
Replies: 10
Views: 761

Re: Error in my php code: mail function

Hi califdon, Thanks for all your assistance. With regards to my starting a new " at the end of a line and not finishing it, I guess the reason why I have done this is so I can start a new line. Is there anyway to introduce a new line without doing it this way. The answer is not just to hit the ...
by lhcpr
Wed Jul 02, 2008 6:05 pm
Forum: PHP - Code
Topic: Error in my php code: mail function
Replies: 10
Views: 761

Re: Error in my php code: mail function

Hello all, Issues related to a conditional mail function seem to be decreasing; which is great news! Most of the issues were borne from poor code formatting and illogical layout!!! A huge lesson I have learnt. While the code works, are there any other suggestions or issues that I need to be aware of...
by lhcpr
Mon Jun 30, 2008 12:43 am
Forum: PHP - Code
Topic: Error in my php code: mail function
Replies: 10
Views: 761

Re: Error in my php code: mail function

Hi califdon and sidewinder - thanks for the feedback. I take your point about formatting and see that silly error in my code. Unfortunately, my php code does not operate correctly after having fixed it ( " . $_POST['field_4'] . "; -> " . $_POST['field_4']; . What I am trying to do is ...
by lhcpr
Sat Jun 28, 2008 9:38 pm
Forum: PHP - Code
Topic: Error in my php code: mail function
Replies: 10
Views: 761

Error in my php code: mail function

Hi, I was wondering if anyone could help me trouble shoot the following php code that uses a mail function to send form data. The error I am currently getting is: Parse error: syntax error, unexpected T_STRING in processor.php on line 46 My code is:   <?php   $where_form_is="http://".$_SER...
by lhcpr
Sat Jun 28, 2008 4:26 am
Forum: PHP - Code
Topic: Changing the client email address when sending form data
Replies: 0
Views: 159

Changing the client email address when sending form data

Hello all - just FYI: total php newbie. I have been using phpformgenerator (sourceforge project) to design a form and php code. Everything seems to work just fine. The form data is designed to be sent to an email recipient (x@yahoo.com). BUT... when the form data is received by the recipient, the se...
by lhcpr
Fri Jun 20, 2008 7:09 pm
Forum: General Discussion
Topic: Testing php code before posting on web server
Replies: 3
Views: 435

Re: Testing php code before posting on web server

Hi there Matt,

I appreciate your help very much!!! I have been using phpFormGenerator to do the hard work, but will need to change some of the code.

Will post when done.

Again - thanks heaps

Graham
by lhcpr
Fri Jun 20, 2008 4:29 am
Forum: General Discussion
Topic: Testing php code before posting on web server
Replies: 3
Views: 435

Testing php code before posting on web server

Hello there, First time post and absolute newbie to php... I am building a website that will have a mail php form function for a particular field. Is there anyway that I can test the mail-to function locally before I post on webserver? I just want to be sure that the field can actually be sent to th...