Re: Help!
| From: | Dave Goodchild | Date: | Fri, 28 Apr 2006 14:01:13 +0000 |
| Subject: | Re: Help! | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234997@lists.php.net to get a copy of this message | ||
Thanks - now the parameters reach the function intact but the mailer still
does not work. Basically, the form is a self-reloader. If the form has been
submitted and the data validated (including emails sent) it displays a thank
you message. Otherwise it shows the starter form.
All that happens when I submit is a white page - no errors (display_errors
is on and error reporting set to the default level) and no html. Nada. When
I try and view source I am given the browser re-post warning.
On 28/04/06, T.Lensselink <admin@ensifex.nl> wrote:
Hey Dave, Besides from example two being the correct way to call array elements. I think it has something todo with error reporting. It's the only thing that comes to mind right now. Maybe you demo server doesn't echo notices... Maybe i'm wrong .. it's friday and my brain don't work that good :) p.s. plz reply to the list :) Hmmm... In the demo version the script accesses the $_GET array - an example value: $data[email] ..which works fine in the demo app. If I quote all the values thus in the new version: $data['email'] ..the arguments appear in the correct order. I understand the second format is better to disambiguate constants but the former format works fine for the demo version. Any reason for the discrepancy? On 28/04/06, T.Lensselink <admin@ensifex.nl> wrote:-- http://www.web-buddha.co.uk dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css) look out for project karma, our new venture, coming soon!hasWell there is an undefined constant prize somewhere.. well it's just a notice but it really looks like the problem.. Try setting error_reporting(0) and see if it runs...process1.php only has 64 lines. On 28/04/06, T.Lensselink <admin@ensifex.nl> wrote:undefinedA blade? come on :) Seems to me it's just an error in : /home/friend/public_html/process1.php line 158 that mangles up your email output. Try and fix thisHi all - I am attempting to solve some maddening behaviour thatconstant.11me totally stumped and before I take a blade to my throat I thought Ipick the brains of the group/hive/gang. I am working on a viral marketing application that uses multipartwouldto notify entrants of their progress in the 'game'. I have a demo version which works fine, and the current rebranded version was also fine until the client asked for some changes then POWWWWW! I will try and define the issue as simply as I can. I am passingemailsreceivingarguments to a function called sendSantaMail (don't ask) and as acheck I have called mail() to let me know the values just before theysanitypassed in to the function. I get this result: "Values to be passed to sendSantaMail: Friend Name: Treyt Friend Email: wonder@brs.com Sender Name: Bull Sykes Sender Email: chancer@gisat.com Prize ID: 1 Nominator ID: 2555004452133557e4d Nominee ID: 851355445213355cc6f Chain ID: CHAIN824452133561a8d" - this is all good and correct. I also call mail from thearethis:function to check the actual values received by the function and I getxhtml,"Values sent into sendSantaMail function: Friend Name: chancer@git.com Friend Email: Look what you may have won! Sender Name: 8 Use of undefined constant prize - assumed 'prize' Sender Email: 158 Sender Email: /home/friend/public_html/process1.php <chancer@git.com>Prize: 1 Subject: 158 Nominator ID: 33238744520f5235b85 Nominee ID: 96658244520f524bb19 Chain ID: CHAIN84644520f525a56f" What is happening? I have checked the order of values being passed inthe function prototype and they match in the correct order, there areanddefault values. I have been trying to solve this for two days and am particularly concerned that somewhere along the way the sender emailnobecomes the script name. Any ideas on this black Friday? -- http://www.web-buddha.co.uk dynamic web programming from Reigate, Surrey UK (php, mysql,value-- http://www.web-buddha.co.uk dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css) look out for project karma, our new venture, coming soon! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- http://www.web-buddha.co.uk dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml,look out for project karma, our new venture, coming soon!css)css)look out for project karma, our new venture, coming soon!-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php