| | |
Form to Excel
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2009
Posts: 34
Reputation:
Solved Threads: 0
Hello Guys,
I would like to know if its possible to have a form with four felds which when i press submit it stores the details to database and then excel or directly to excel, iv been searching around, and couldnt find much information, so would apericiate so help. Or if someone could give me a link to a tutorial.
Thank you
I would like to know if its possible to have a form with four felds which when i press submit it stores the details to database and then excel or directly to excel, iv been searching around, and couldnt find much information, so would apericiate so help. Or if someone could give me a link to a tutorial.
Thank you
somebody on daniweb recently did a thing with php/excel with COM. I think you need to be running IIS, but I may be wrong. Search the last 4 days for posts on this.
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
if only the data is important, the structure of the file constant,
mysql/php export the data as csv which excel can import and read as data
without fussing with .xls format
if the structure of the file is important, for calculated fields, a 'blank' .xls for download and then import the same comma separated values into it
If you need a lockdown .xls file try http://www.phpclasses.org/browse/package/3995.html
mysql/php export the data as csv which excel can import and read as data
without fussing with .xls format
if the structure of the file is important, for calculated fields, a 'blank' .xls for download and then import the same comma separated values into it
If you need a lockdown .xls file try http://www.phpclasses.org/browse/package/3995.html
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
Join Date: Jul 2009
Posts: 34
Reputation:
Solved Threads: 0
Thank you guys for the help so far, i have been able to click on export and then "Microst Excel 2000" which has done what i want, but when i try to mail merge it just gives me an error, can someone please help, please note that i have found a tutorial but its not exactly what i want to thank you so far.
http://www.dreamincode.net/forums/showtopic10132.htm
This tutorial is easy to follow and will teach you how to write a tab delimited text file with a xls extension in php. It uses basic php text file functions such as fopen and fwrite.
This tutorial is easy to follow and will teach you how to write a tab delimited text file with a xls extension in php. It uses basic php text file functions such as fopen and fwrite.
Lost time is never found again.
- Benjamin Franklin
- Benjamin Franklin
I think that you can use my little desktop_write routine to produce your excel file.
http://innovationsdesign.net/wb_2.7/.../downloads.php
http://innovationsdesign.net/wb_2.7/.../downloads.php
•
•
Join Date: Jul 2009
Posts: 31
Reputation:
Solved Threads: 0
Are you wanting to do it via a website or inside excel itself?
I know that if you press some alt and function key or somethign, you can insert vb6 code inside excel. This also includes created forms. If done correctly you can load the form and it inserts the code inside the table.-- how its done, i couldnt' tell you
I know that if you press some alt and function key or somethign, you can insert vb6 code inside excel. This also includes created forms. If done correctly you can load the form and it inserts the code inside the table.-- how its done, i couldnt' tell you
•
•
Join Date: Jul 2009
Posts: 34
Reputation:
Solved Threads: 0
Hello Guys.
Thank you for replying back, what i need is 3 fields which are
Name
Age
Location
And when i fill this in, it stores the data to mysql database, which i know how to do,
But then i want to go to convertphptoexcel.php which then converts all the feilds and information to excel so i can download the file and open it so i can do mailmerge.
Thank you for replying back, what i need is 3 fields which are
Name
Age
Location
And when i fill this in, it stores the data to mysql database, which i know how to do,
But then i want to go to convertphptoexcel.php which then converts all the feilds and information to excel so i can download the file and open it so i can do mailmerge.
•
•
•
•
Hello Guys.
Thank you for replying back, what i need is 3 fields which are
Name
Age
Location
And when i fill this in, it stores the data to mysql database, which i know how to do,
But then i want to go to convertphptoexcel.php which then converts all the feilds and information to excel so i can download the file and open it so i can do mailmerge.
output the query that gets the information as comma separated
php Syntax (Toggle Plain Text)
/* select query for each selected row define file open file for writing*/ { fput ($file,'/"'.$Name.'/",/"'.$Age'/",/"'.$Location'/"'); } /* fclose rest of query set file for download*/
like swatting a fly with an a-bomb
edit. do those "/" point the right way?
Last edited by almostbob; Jul 25th, 2009 at 6:52 am.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
![]() |
Similar Threads
- how to connect ms access database to html webpage (JavaScript / DHTML / AJAX)
- VB6 and Excel (Visual Basic 4 / 5 / 6)
- ms access database form (MS Access and FileMaker Pro)
- How to pause execution when showing form in Excel? (Visual Basic 4 / 5 / 6)
- Diplaying Excel Spread aheets online (ASP.NET)
- copy excel file (Visual Basic 4 / 5 / 6)
- Open Excel Sheet in Vb.net (VB.NET)
- Opening a form on click event in a different File (Visual Basic 4 / 5 / 6)
- Hi Frnds..Need ur help here (HTML and CSS)
- VB and Excel. (Visual Basic 4 / 5 / 6)
Other Threads in the PHP Forum
- Previous Thread: problem with upload script
- Next Thread: Starting with PHP
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google href htaccess html httppost if...loop image include insert ip javascript joomla jquery key library limit link links login mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search searchbox server session sessions sms sorting source space sql syntax system table tutorial update upload url validator variable video volume votedown web website youtube zend






