Welcome Guest, Not a member yet? Register   Sign In
Form not calling function, instead refreshing page with querystring
#6

[eluser]ReasonMan[/eluser]
[quote author="Jameson." date="1239867039"][quote author="pistolPete" date="1239805439"]
[quote author="Jameson." date="1239800299"]Seem like method=post attribute is missing from your form ...[/quote]

It should be there, because if no $attributes is set, POST is the default value[/quote]

True. It should be there, but it is not, judging by the way form behaves. ReasonMan, it is simpler and quicker at this stage to publish just this page somewhere for us to have a look at it in its entirety. Because clearly thing don't go how they should, for an (unknown) number of unknown reasons. Maybe (just maybe) you use some js-plugin that messes with form's attributes, or maybe you forgot to delete declaration of another form inside the form in question and the former gets submitted instead of the one that should.[/quote]

You know what, the latter was exactly it, and I feel so dumb. I'm converting my site from ASP.NET to PHP and I had copied my header contents from the master file. I don't recall why, but I had my main content embedded in a form that had no action(required .Net nonsense) and that was opened in the header and closed in the footer. Deleting that container form allowed the comment form to post to the correct place.

Thanks all for the help. I'm going to have to pay more attention to my source when I copy/paste.


Messages In This Thread
Form not calling function, instead refreshing page with querystring - by El Forum - 04-15-2009, 08:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB