PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...
If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.
"Untitled" by Anonymous [PHP]Actions: |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
$xml = simplexml_load_string( $xmlMessage ); /*echo "<pre>"; var_dump($xml); echo "</pre>";*/ echo "<table>"; foreach ( $xml->part as $field ) { $field['type'] = str_replace("xsd:", "", $field['type']); if($field['type'] == "string") { echo '<tr>'; echo '<td><label for="'.$field['name'].'">'.$field['name'].' <input type="text" id="'.$field['name'].'" name="'.$field['name'].'" value="'.$field['name'].'"></label></td>'; echo '</tr>'; } elseif($field['type']=="boolean") { echo '<tr>'; echo '<td><label for="'.$field['name'].'">'.$field['name'].' <input type="checkbox" id="'.$field['name'].'" name="'.$field['name'].'" value="0"></label></td>'; echo '</tr>'; } /*echo "<pre>"; var_dump($field); echo "</pre>";*/ } echo "</table>"; |