download a file from a form button

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I can't get a form coding to recognize a download.php to download a file to
the client.  I need the edits of the form for a MySQL table, but the
following form code only wants to download 'download.php' and won't access
download.php so the code can take affect.  How can the action item call

<form name="form1" method="post" action="download.php"

   return document.MM_returnValue">
  <p><b><font size="3">First Name:</font></b>
    <input type="text" name="FirstName" maxlength="50" size="30">
    <font size="3"><b>         Last Name:</b></font>
    <input type="text" name="LastName" maxlength="50" size="30">
    <input type="text" name="email" size="40" maxlength="50">
 <input type="submit" value="Download" />

Re: download a file from a form button

Quoted text here. Click to load it

Sounds like your web server is not configured to recognize .php files as a
server-side script.  Did you do the install, or is this a hosted web site?
- Tim Roberts,
  Providenza & Boekelheide, Inc.

Site Timeline