Re: form handling
| From: | Bastien | Date: | Fri, 12 Aug 2011 01:23:21 +0000 |
| Subject: | Re: form handling | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314509@lists.php.net to get a copy of this message | ||
On 2011-08-11, at 9:13 PM, "Jim Giner" <jim.giner@albanyhandball.com> wrote:
> Jim,
>
> This is what I am trying to do. One submit button for both forms going
> to the same destination.
>
> The only reason I am doing this is because I can't figure out why my
> ajax for my select menus is altering my tinyMCE textarea box.
>
> Ultimately if I can figure out how to control the ajax within the div
> container as I showed in a previous email I would be able to just use
> one form. any ideas??
>
> Thanks,
>
> Chris
>
> ****
> Chris,
> By definition, a 'submit' button submits a form. Not 2 forms. Each form has to have
> it's own form. It is not feasible to submit two forms - since the conversation from your client
> pc is going to be garbled even if you could (JS?) do the second submit. One transactiion is going
> to answer your client and then the other is going to wipe it out with its respone.
>
> I don't think you have ot separate your forms becuase they are in separate divs. I could
> be wrong - never tried it.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
I would bet it's the quotes screwing up the js. Can / are you escaping that variable when
ajaxing it back?
Bastien Koert
905-904-0334