FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Code Stops Working
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Code Stops Working [message #172383 is a reply to message #172380] Tue, 15 February 2011 23:24 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On 15/02/11 22:06, Mike Copeland wrote:

> I have assumed ownership of a site that has a lot of PHP code - and I
> don't have much experience with the language and environment. The site
> is:
>
> www.raceplaceevents.com
>
> The situation is that I've made a small change to one of the sub-
> pages that seems to render it not working. The sub-page is:
>
> results_ques_probs.php
>
> and can be accessed from the main page by clicking the "Results
> Questions Or Problems" button of the left.
> When clicked, the action _appears_ to work. If one fills out the
> required fields and clicks the "Submit" button, everything seems okay:
> no errors or messages. However, no e-mail is sent to either of the 2
> addresses, nor is there a status message sent to the sender's e-mail. 8
> <{{
> The change I made is in the HTML table code near the bottom of the
> code, where I commented out one of the prompts. (You can see the change
> I made if you look at the code.) Again, the remaining code appears to
> function, but no e-mail is sent and no error is reported by the browsers
> I've tested. Please advise. TIA

Unfortunately we can't see the php code, just the html that it generates.

However, I see the following conflict when I look at the page html:

<form name="form_name" ....... onclick="check(this)">

<input name="name" .... >

</form>

and the javascript:

function check(form) {
name = form.name;
if (trim(name.value) == "") /* barf gently */;
}

If form.name is the name attribute of the form, then it has no value
attribute, so I'm wondering what trim which I assume is a locally
defined function will do when given an undefined value ....

Whether this is related to your problem or not I don't know.

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: about memory usage with php application
Next Topic: PHP currency converter with XML feed
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 23:21:20 GMT 2024

Total time taken to generate the page: 0.03421 seconds