vinpkl — 2012-02-09T01:05:23-05:00 — #1
i have <form> inside <form>
the parent form submit button doesnt works. But nested form submit buton works.
I want both submit buttons to work as both does different tasks.
what am i doing wrong ?
echo "submit Parent"; /*This message doesnt echo */
echo "submit Nested"; /* This message is echo fine */
echo "<form id='form1' name='form1' method='post' action='$qrystring'>";
// for 2nd starts which is inside a loop
echo "<form name='avform' id='avform' method='post' action='$qrystring2'>";
echo "<input name='amt' type='checkbox' value='child' id='child' />child <br>";
echo "<input type='submit' value='submit Nested' name='av_submit'/>";
// form 2nd ends
echo "<td><input name='submit' type='submit' value='submit Parent'/></td>";
logic_earth — 2012-02-09T02:31:25-05:00 — #2
Ummm nested forms don't work at all. You need to rethink how you are setting this form up.
vinpkl — 2012-02-09T03:58:21-05:00 — #3
i tried putting the form inside <iframe>
but now how will i use the variables values that were being used in parent page.
I m not getting values of those variables to work inside <iframe>
anthonysterling — 2012-02-09T04:01:13-05:00 — #4
Don't use an iframe (I'm not sure why you are), restructure your form as per logic_earth's suggestion.
vinpkl — 2012-02-09T04:07:37-05:00 — #5
If i use ajax popup and insert this form inside that pop up
then will i be able to use those variables from parent page inside my pop ?
or ajax pop will also work same as iframe ?
anthonysterling — 2012-02-09T04:10:11-05:00 — #6
Just "pop up" the form, which already exists in the DOM. Again, I'm not why you need an iframe here.
Lets get this thread moved the JS forum for now, you can get your form/pop-up/iframe stuff working there then come back and we'll help with the nard stuff.
vinpkl — 2012-02-09T04:17:29-05:00 — #7
i want to use PHP variables values that are in parent page
correct me if i m wrong
vinpkl — 2012-02-09T04:23:21-05:00 — #8
If we forget about the <from> part
I know how to create popup or iframe
but can anyone tell me in general how to use PHP variables values from parent page inside the <iframe> or "Popup" box
stormrider — 2012-02-09T04:25:12-05:00 — #9
Popup box is just on teh same page, so you just use the variables as normal - output them in the right place!