473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

download a file from a form button

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>
Jul 17 '05 #1
3 2521
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
Jul 17 '05 #2
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
Jul 17 '05 #3
"Doug" <fa****@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.
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mike | last post by:
ok here's the problem: I have a page that displays a form for user to select individual fields and to specify their own criteria which is used to query a database and then create an excel...
0
by: Sarah Akers | last post by:
GgF ----gL5cJ72EqiGIQ0SK65Rz Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <head> <style type=3D"text/css">.eyebrow { FONT-WEIGHT: bold; FONT-SIZE: 10px; TE=
0
by: Anne Snow | last post by:
7qs ----bSCMEc0pLIbJxmV9 Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE= : 10px;...
0
by: Lynda Kilgore | last post by:
jGu ----qtHwhORV90yyhqJMOc Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE= : 10px;...
0
by: jmd | last post by:
Hello. I want to write a C# program that does completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6) 2. I browse to my desired download page, say...
11
by: John Smith Jr. | last post by:
Is there a way to have the server send a file to client (ie download) from a button click and a filename string?
18
by: jmd | last post by:
Hello, I posted the following in the C# forum but without one answer. But perhaps now in vb.net someone has some guidelines ! This is my question : I want to write a vb.net program that does...
0
by: comp.lang.php | last post by:
I have a form that when you click the "Generate Report" submit button, it will force download a CSV file, required for this project. On the very same page you also have a "Search" submit button,...
1
by: RN1 | last post by:
In an ASP.NET app, users can upload their files to a remote server as back-up. I want to give users the provision to download files that they have uploaded to the remote server to their local...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.