hello
im trying to run a rather complex little script that uploads pdfs to a webserver I want to use a for loop to save me some time but cant seem to understand why my code doesnt work and pretty sure its a syntax error.
<?php
$msg = "hello<br>";
for ($i=1;$i<6;$i++) {
if ($heading[$i]) {
$msg .= "Headings are : ".$heading[$i]."</br>";
}
}
?>
this is just a little script to see if it works but it doesnt, what am i doing wrong here, it suppose to loop six times check if the fields heading1-6 are filled then show a message which displays the heading but nothing happens.
any ideas? thanx in advance.