Re: Help!
| From: | Dave Goodchild | Date: | Fri, 28 Apr 2006 14:19:22 +0000 |
| Subject: | Re: Help! | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235000@lists.php.net to get a copy of this message | ||
I would do but there are 5000+ lines and no indication of where the error is
occurring. I have just copied the demo version into the same dir and it
works fine - and that version calls the same classes (includes).
On 28/04/06, T.Lensselink <admin@ensifex.nl> wrote:
Maybe show some code... Think some error inside a class / function causes that no output is send... 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:-- 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!IHey Dave, Besides from example two being the correct way to call array elements.thoughtthink 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 inthenew 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 fineforthe demo version. Any reason for the discrepancy? On 28/04/06, T.Lensselink <admin@ensifex.nl> wrote:aWell there is an undefined constant prize somewhere.. well it's justprocess1.php only has 64 lines. On 28/04/06, T.Lensselink <admin@ensifex.nl> wrote:notice but it really looks like the problem.. Try setting error_reporting(0) and see if it runs...hasHi all - I am attempting to solve some maddening behaviour thatundefinedA 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 thisconstant.metotally stumped and before I take a blade to my throat IpassingImultipartpick the brains of the group/hive/gang. I am working on a viral marketing application that useswoulduntilto notify entrants of their progress in the 'game'. I have a demoemailsversionwhich works fine, and the current rebranded version was also finetheclient asked for some changes then POWWWWW! I will try and define the issue as simply as I can. I ambefore11arguments to a function called sendSantaMail (don't ask) and asacheck I have called mail() to let me know the values justsanity'prize'receivingtheypassed 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 thearefunction to check the actual values received by the function and I getthis:"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 - assumedxhtml,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 beingpassedthereinthe function prototype and they match in the correct order,andandaredefault values. I have been trying to solve this for two daysnoxhtml,amparticularly concerned that somewhere along the way the sendervalue-- http://www.web-buddha.co.uk dynamic web programming from Reigate, Surrey UK (php, mysql,look out for project karma, our new venture, coming soon!css)-- 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!-- 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)-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpcss)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