This is a discussion on "php error" within the PHP Forum section. This forum, and the thread "php error are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
php error
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
php error
Getting an error, could someone check my code please
main page that you input data
|
|
|
|
#2
|
|||
|
|||
|
Re: php error
|
|
#3
|
|||
|
|||
|
Re: php error
The HTML at the start of the form line should be:
Also, remember to filter HTML characters from your input before putting the code live. Use htmlspecialchars(). This code might pose a problem:
Just remove one to fix the problem. Also, in the first line of the PHP you missed out a concatenation "dot", and you had an extra quote after "Name", and a few other bits and bobs. So some code for the PHP part might be:
But apart from that, sendmail.php gives me a 404 error. Are you sure it has been uploaded to your server? Last edited by balaclave; Jul 20th, 2007 at 19:56. |
|
#4
|
|||
|
|||
|
Re: php error
Sorry forgot to upload that part, but still getting nothing
http://www.lightex.co.uk/testfolder/sendmail.php |
|
#5
|
|||
|
|||
|
Re: php error
Can you post exactly what code is in sendmail.php?
|
|
#6
|
|||
|
|||
|
Re: php error
Quote:
|
|
#7
|
|||
|
|||
|
Re: php error
There are still some code errors. Try this:
HTML code:
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#8
|
|||
|
|||
|
Re: php error
Thought I'd make another reply.
My PHP is now tested and working (quotation marks around htmlspecialchars() were causing php to output that as text, and an S had somehow sneaked in and replaced a $ symbol At the moment, my original code and c010depunkk's will output $msg which is the email message - I think it would be better just to output $_POST['message'] at the place where it says "Your message was:". This defintely works:
|
|
#9
|
|||
|
|||
|
Re: php error
it's just sitting on sendmail.php, not doing anything
|
|
#10
|
|||
|
|||
|
Re: php error
|
|
#11
|
|||
|
|||
|
Re: php error
thank you sorted, it's working fine thank you
|
|
#12
|
|||
|
|||
|
Re: php error
Quote:
Is there anything else you would like to know to tweak your form, or are you happy with it now? |
|
#13
|
|||
|
|||
|
Re: php error
Hey balaclave where you learn all this php goodliness. I'm struggling with it all to be honest.
Pete. |
|
#14
|
|||
|
|||
|
Re: php error
Not that I can think of, but I'm bookmarking you, your very useful!!!!
Thanks again mate. Still learning php so thought I was doing well till it did not work! |
|
#15
|
|||
|
|||
|
Re: php error
Quote:
I've not had any tuition but I'm good at maths and problem solving which, I am certain, helps. php.net is probably the most useful website (since it contains the php manual). For everything else there's Google. |
![]() |
| Tags |
| php error |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Getting the "Microsoft JET Database Engine error '80040e14'" error. | VegaLA | Classic ASP | 3 | Jan 26th, 2008 00:12 |
| Keep getting error message Microsoft VBScript runtime error '800a01a8' | cpando1974 | Classic ASP | 2 | Aug 7th, 2007 12:00 |
| Error 500 - Internal server error | JasonStanley | PHP Forum | 3 | Apr 23rd, 2007 17:56 |