Page 1 of 1

File Download Problem

Posted: Fri Jan 16, 2004 4:11 pm
by melindaSA
I have an online job application form that allows the user to upload their resume. They have to name the resume firstnamelastname.doc. I have now set-up an admin page for the HR person to get the resume and application form. My problem is that I can get the following to work only using $last_ name, how do I call $first_name and $last_name in the following:

Code: Select all

<?php
if(!file_exists("resume/".$last_name.".doc")){
    echo "<td width="80"><font face="Verdana" size="1">No</font><br></td>\n";
} else {
echo "<td width="80"><font face="Verdana" size="1"><a href="resume/".$last_name.".doc">Yes</a></font><br></td>\n";
}
?>
Thank you,

Posted: Fri Jan 16, 2004 4:43 pm
by Gen-ik

Code: Select all

<?php
if(!file_exists("resume/".$first_name.$last_name.".doc")){
    echo "<td width="80"><font face="Verdana" size="1">No</font><br></td>\n";
} else {
echo "<td width="80"><font face="Verdana" size="1"><a href="resume/".$first_name.$last_name.".doc">Yes</a></font><br></td>\n";
}
?>

Posted: Fri Jan 16, 2004 5:02 pm
by melindaSA
:D Thank you!!!