|
Posted by Jerry Stuckle on 09/22/06 23:42
Brad Everman wrote:
> I have an HTML form that passes arrays of values to PHP. Basically, each
> row of the form tracks three separate values for processing. I have a JS
> program that will dynamically add (or delete) rows to the form per the
> user. The problem is that these values are not passed when the form is
> submitted. If I hardcode the rows it works fine, so I know the processing
> code isn't the problem. My question is how can I dynamically add form rows
> via JS and have their values passed when the form is submitted? I
> attempted something like $_POST["document.something"] but that did not
> work.
>
<code snipped>
I don't see where you're actually submitting the page other than when
you remove an item. If this is the code you're actually using, then
that's why it isn't showing up.
If this isn't the actually code you're using, you should post that, or,
more preferably, a link to the page.
And no, PHP knows nothing about DOM. All it knows are the fields which
are sent via POST or GET.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|