Afficher un message
Vieux 09/04/2008, 13h00   #2
Peter Ford
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] dynamic boxes problem... JS and PHP

Ryan S wrote:
> Hey Pete,
>
>
> **
> First, you should reply to the list - that way more people could see the links
> you posted and out.
> **
> Oops, my mistake, I thought I did that. Will add a snip at the bottom of this email.
>
> **
> It looks like there may be a problem with the form tags - when I look at this
> code I see
> <form action="process_ecard1.php" method="post" name="mainform"></form>
>
> That looks like you've closed your "mainform" before defining the inputs
> **
>
> can you tell me which line you see this? I did a search using that string on top and I couldnt find it... I even did a "form" search and still didnt find both of the form tags side by side..
>
> Thanks again,
> R
>
> /// Snip of other mail with links ///
> ....but looks like posting links is the best option so will do:
>
> http://www.coinpass.com/test/step2.php (to run the script)
> http://www.coinpass.com/test/step2.phps (View the source, its just a html file really)
> All Javascript and CSS is in the "http://www.coinpass.com/test/scripts/" directory
>
> The processing script just has
> print_r($_REQUEST);
> so its useless pointing you to the actual file source.
>
> ///// End snip///
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


Ryan,

You did reply to the list - it appeared in a separate thread in my viewer, so my
bad.


OK, the version with <form ...></form> appeared when I used WebDeveloper toolbar
to view the *generated* source.

When I look at the source code as received by Firefox (which is what the regular
"View source" option does), the closing form-tag is where you expect.

i think I spotted a problem, however. Your original source code looks like it
has a spurious <tr> after the first recipient block.

I think you need to really check the nesting of your tags - try indenting stuff
to make the opening and closing tags line up and see if it gets out of line
somewhere.

Anyway, I suspect what is happening is that Firefox is treating the </form> as a
closing tag for the spurious </tr> and then implicitly closing the original
<form> tag with an empty form.

Your Javascript code also adds a spurious <tr> tag (line 17 of
dynamic_no_of_recipients2.js)

This is not really anything to do with PHP, of course...

--
Peter Ford, Developer phone: 01580 893333 fax: 01580 893399
Justcroft International Ltd. www.justcroft.com
Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom
Registered in England and Wales: 2297906
Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS
  Réponse avec citation
 
Page generated in 0,06718 seconds with 9 queries