Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

download a file from a form button

0 views
Skip to first unread message

Doug

unread,
Sep 7, 2004, 10:01:08 AM9/7/04
to
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
download.php?

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

MM_validateForm('LastName','','R');MM_validateForm('email','','NisEmail');
MM_validateForm('email','','R');
MM_validateForm('FirstName','','R');
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">
</p>
eMail:
<input type="text" name="email" size="40" maxlength="50">
</b></p>
<input type="submit" value="Download" />
</form>


Erwin Moller

unread,
Sep 7, 2004, 10:13:53 AM9/7/04
to
Dough,

Your posting is scrambled and looks like nonsense in my viewer (KNode).
Maybe repost it.
(Be sure to post plain text)

Regards,
Erwin Moller

Erwin Moller

unread,
Sep 7, 2004, 10:18:40 AM9/7/04
to
Erwin Moller wrote:

> Dough,
>
> Your posting is scrambled and looks like nonsense in my viewer (KNode).

No it doesn't. My comp screwed it up. :-(
Sorry about that.

to your question:
My advise would be to do a little test.
First remove the whole onsubmit-stuff and see if the script is called as you
expect.

1) If it doesn't: Your download.php is broken
2) If it does: check all the functions you call, like MM_validateForm, etc.

Regards,
Erwin Moller


Tim Roberts

unread,
Sep 9, 2004, 2:15:09 AM9/9/04
to
"Doug" <fab...@toast.net> wrote:
>
>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
>download.php?

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, ti...@probo.com
Providenza & Boekelheide, Inc.

0 new messages