Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
12-13-2011, 03:13 AM #1
- Join Date
- Dec 2011
- Thanked 0 Times in 0 Posts
Passing value from child form to parent form
12-13-2011, 09:57 PM #2
NOT AT ALL.
But on top of that, you are trying to treat a multiple set of <input> fields as if they were a single <select> field. That will never work, in any language.
The is no such thing as selectedIndex for any <form> field type except a <select>.
Finally, I have no idea what kind of values you are getting for those <input> fields.
I can't make sense of this:Since $1 is just a number from 0 to 4, that means the value= of those <input>s is going to be like this:Code:<?php echo $i."*".test;?>
Where I have no idea what xxxx will actually be.Code:value=0.*.xxxx value=1.*.xxxx value=2.*.xxxx value=3.*.xxxx value=4.*.xxxx
Or if that is even legal PHP code.
So let's start with that: Bring up that web page in your browser. Right click somewhere in it and then click on "View Page Source" from the right click menu that appears. Copy/paste what you see from that to here.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
12-14-2011, 05:25 PM #3
- Join Date
- Jan 2010
- Behind the Wall
- Thanked 341 Times in 337 Posts
The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.André Behrens, NY Times Software Developer