File Download Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
melindaSA
Forum Commoner
Posts: 99
Joined: Thu Oct 02, 2003 7:34 am

File Download Problem

Post 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,
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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";
}
?>
melindaSA
Forum Commoner
Posts: 99
Joined: Thu Oct 02, 2003 7:34 am

Post by melindaSA »

:D Thank you!!!
Post Reply