Hi there:
The following extract is taken from my php script that will write XML tags conforming to names taken from HTML form fields, and place the values from the fields between the tags, however, much like dates in php, I suck at arrays: ($Fname et al are the form fields)
$fielddata = array("FirstName"=>$Fname, "LastName"=>$Lname, "Age"=>$age, "Email"=>$email);
for($i=0; $i < count($fielddata); $i++) {
$datadescr = $fielddata[??];
$datavalue = $fielddata[??];
//Get data into XML tags
@fputs($xmlfile,"\t<". $datadescr .">");
//End of data (similar to </td>) @fputs($xmlfile,$datavalue."</". $datadescr .">\n");
}
I'm just not sure how to access the values in my array.... (Hence use of ???)
ANy help would be much appreciated, as the array examples at php.net are not too helpful to me
Cheers all.
Russ