Jump to content


Photo

Can I Save A Form In Csv Format


  • Please log in to reply
1 reply to this topic

#1 kenwvs

kenwvs
  • Members
  • PipPipPip
  • Advanced Member
  • 194 posts

Posted 29 June 2006 - 05:36 PM

I have designed a html form and want people to be able to complete it and then save it locally on their computer in a csv file format.

It is a form that they can complete and then upload multiple items to my auction site, but it requires the data to be in csv format.

When configuring the "button", I labelled it as a normal button, but it won't let me stipulate that it saves to a local computer.

I thought this would work, but am not sure how to configure the save button to do this, or if I need to do something a little different.

the form can be located at [a href=\"http://www.forsale4u.ca/uploadform.html\" target=\"_blank\"]upload form[/a]   but I am not sure this will help.
I hope this makes sense.

I am not sure if what I am wanting to do is even remotely possible, let alone possible for someone not really sure what he is doing.

I have designed a form that allows people to list multiple items on an auction site at once.  The file has to be saved in csv format.  This is strictly for appearance sake, as they could just complete the form in excel or an editor if nothing else.  I would like to be able to have them download the form, complete it and then save it locally on their computer in csv format, and then they would upload the csv file to the auction site.

Any help out there?

Ken

Ken

#2 Gast

Gast
  • Members
  • PipPipPip
  • Advanced Member
  • 131 posts
  • LocationSouth East England

Posted 04 July 2006 - 12:08 PM

You can do it in PHP. Store it in a database and then fetch it from the database, echoing it out separated by commas, and make sure you have this at the top:

<?php header("content-type: text/csv"); ?>

OS and Internet Specs:
Windows XP (with SP2), 1680x1050, PHP 4, MySQL 3, Internet Explorer 6 &7 /FireFox 2.0/Opera 9.2

Tutorials:
Simple Introduction to AJAX and XMLHttpRequest
Creating Live Data with AJAX Making a Google Suggest like application




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users