php - no value from $_POST -
No value is sent in the value $ _ POST ['addEdit']
, please Help please
HTML code:
& lt; Form name = 'frm' method = 'POST' verb = '' & gt; & Lt; Table cellpadding = "0" cellspacing = "0" range = "0" width = "100%" & gt; & Lt; Tr class = "heading" & gt; & Lt; Td style = "width: 5px;" & Gt; & Lt; Input type = "checkbox" name = 'check_all' onClick = 'checkAll ();' / & Gt; & Lt; / TD & gt; & Lt; Td square = "head" & gt; App name & lt; / Td> . . & Lt ;? Php // some embeded php (here is addEdit component). Echo '& lt; Td id = "row_ '. $ Line [' id '].' 'Style =" display: none; "& Gt; & lt; input type =" text "name =" addEdit "id =" addEdit_row _ ' $ Line ['id']. "" Value = "" size = "4" /> gt; & Lt; / Td> & Lt; TD & gt; & Lt; Input type = "submit" name = "add" value = "A" onClick = "addObs ('. $ Line [' id '].'); Returned;" /> '; & Lt; / TD & gt; . .What is PHP code? & Gt; & Lt ;! - End of HTML code - & gt;
PHP code:
if (isset ($ _ POST ['add'])) {// resonance 'AaaaAiaAiaAiaAAAAAAAA' ;; If (isset ($ _ POST ['addEdit'])) {echo 'post:'. $ _ POST ['addEdit']; }}
Did you & lt; Form & gt;
closed the tag?
Try:
var_dump ($ _ POST);
Comments
Post a Comment