tuddy
Aug 5 2005, 04:19 AM
| | Hi,
Does anyone know how i can do this, or scripts that will work on Trap17's servers and will do the following:
I have a .doc file form. Which i want to have filled in automactically, by HTML Form and emailed to my address, with the data filled in.
Any ideas?
I have heard many differing things, like XML, RTF, DOC, PDF...
I have serched through many places and come up empty handed with anything that works.  |
Reply
BuffaloHELP
Aug 5 2005, 05:17 AM
I have fooled around with cgiemail, which is builtin script in the hosting, and the only way this will work is through a simple TXT file. If that's alright with you I can post for further instruction on how to use this builtin feature. For the preview, all you need to do is assign name="namefield" and use your HTML form to HTML <input type=text name="name1"> ... <input type=text name="name2"> ... And write a simple TXT file with: CODE Name of the first [name1], and the name of the second [name2].
This will email to you with [......] field filled with the response filled by your HTML form page. Such that, CODE Name of the first Jack, and the name of the second Spicer.
Reply
guangdian
Aug 5 2005, 05:37 AM
i just know php and asp script can do this but i'm not sure even it can automatically do it. then i just not sure the .doc file can do it automatically sorry
Reply
tuddy
Aug 5 2005, 08:43 AM
It doesn't matter what type the file is, XML, RTF, PDF etc. as long i can convert it to that type fromt .doc file. Also what ever script or lanuage doesn;t really matter either, as long as it will work with Trap17s servers. and on my site. Has anyone done a Tutorials for this based on trap17 servers? Thanks for your great help. This is a way of learning for me!...add it to the list!
Reply
BuffaloHELP
Aug 5 2005, 10:43 AM
QUOTE(tuddy @ Aug 5 2005, 04:43 AM) It doesn't matter what type the file is, XML, RTF, PDF etc. as long i can convert it to that type fromt .doc file. I have written a short tutorial for you here http://www.trap17.com/forums/index.php?sho...ndpost&p=170547When you open TXT file you can open and save to DOC file type. That's not hard. QUOTE Also what ever script or lanuage doesn;t really matter either, as long as it will work with Trap17s servers. and on my site. There are other free scripts you can download and install it in your hosting but why not use the free one if it serves your purpose, right? You can search for more by typing FORMMAIL. QUOTE Has anyone done a Tutorials for this based on trap17 servers? Sure, we have the tutorial section with 4 formmail tutorials. Remember that you can search for topics. That's why writing the correct title and description is VERY IMPORTANT to this forum (it's also TOS--terms of service). One thing off the topic: Please refrain from using unnecessary spaces between your sentences. Otherwise it will look terrible and waste of space. Thank you.
Reply
tuddy
Aug 6 2005, 10:14 AM
Ok, so FORMMAIL will help me with this? The file type has to be able to support formatted test, and tables. BTW, Sorry about the spaces thing
Reply
Similar Topics
Keywords : reading, files, read, replace, insert, data, form
- A Simple Preg_replace Help Please.
(1)
Preg Replace Problem
(1) If i have a word like c.........a......t (with the dots in) and i wanted to replace it with cat how
would i do it. If i use CODE <?php $patterns =
"/c(*)a(*)t/"; $replace = "cat"; echo
preg_replace($patterns, $replace, 'c.....a.........t');
[/color][color="#000000"]?> then when i type something like "
c ome a nd look at t his" is also filtered. Is
there any way just to filter cat with dots in? ....
Php Preg Replace
(1) Ive got a problem with preg replace, this is the code: display.php CODE <table
border="1"> <tr><th width="70">Time</th><th
width="200">IP</th><th
width="70">Viewed</th></tr> <?php $LogData =
file_get_contents("log.txt"); $Find =
"/||(.*)|(.*)|(.*)||/i"; $Replace =
"<tr><td>$1</td><td>$2</td><td>$3
</td></tr>"; ....
Reading Emails Using Php (imap)
(0) Evening, ive been experimenting with PHP and IMAP (IMAP is a protocol used to read email messages
without downloading them to a client like using POP) and I've come across a couple of issues,
one of which i posted on the forums here but have since solved. But the solution highlighted another
problem... It seems my simple code can only "detect" and therefore read/display NEW emails, which is
a big problem so does anyone know how to read/display already read emails? If all else fails i can
of course store all emails into a DB when the user reads them and retain them ....
Need Some Help In File Browser
listing all sub folders and files in them. (8) Hey I want to create a very simple file browser, so that, it reads all the sub-folders which are
places in a directory, and the files inside the sub-folders (It reads only files inside sub-folders
and list them in simply. ) Also, it creates a directory (any name) inside each sub folder. My
Following code reads on the files inside the main directory, it does not read the files inside the
sub-folders.. I appreciate any help. CODE <? $path = "./"; $dir_handle =
@opendir($path) or die("Unable to open $path"); whil....
Download Script For Mp3 Files
(0) Hello, I'm looking for a download script for sound files (e.g. mp3, avi, wma, and other ones).
i have found a few download scripts but they would not work for sound files for some reason. also
this will not be used for allowing downloading of illegal or riped music, what i will be using this
script for is i'm making a site for my church and the pastor wants to be able to recored the
services and then have me upload them to the site so that the church members can download them for
what ever reason. If some one could tell me how to make one or could show me a plac....
Php + Mysql Question!
While inserting data into MySQL, how can I know if the data I'm in (4) Basically, I want to know if the Data I'm inserting through a Form is already there or not. Sort
of a Username registration page. I have this, but it doesn't appear to work... CODE
$result = mysql_query("SELECT * FROM users WHERE
username='$username'"); if($result == 1) { echo
'<h1>ERROR!</h1>The username you have chosen already exists!'; }
....
Php Email Validation
A PHP data validation class with many functions (1) I've been reading through my old php book (PHP 4.1) and came across this data validation class.
It can check a number of things ranging from telephone numbers , credit card number formats, email
address and some others. I checked out some of the methods although I didnt expect it to work 100%
because I've found source code errors thoughout the book and CD. I tested out a few of the
methods to check and some of them did return expected results but some didnt either so the data
validation class was not perfect and it didnt really bother me. The cool thing I found....
I Need Some Proof Reading For My Code Please! [resolved]
(7) Well... everything is fine except the Content Select section (refer to the in-code headings)...
thats where it says the error is... could anyone find out why it wont work when I click one of my
links? http://2kart.trap17.com/progress.php for an example of what happens...
//----------------- //portfolio paths //----------------- $portfolio = "/portfolio"; $lay
= "/images"; //------------------ //navigation //------------------ $link = · Home
html; $link = · Portfolio html; $link = · Programming html; $link = ....
Using Multiple Selection Array In Table To Order Data
Using multiple selection array in table to order data (1) have a form that has a multiple select choice, like this: CODE <form method="post"
action="display.php" <select multiple name="selectsort[]">
<option value="code">Code</option> <option
value="amount">Amount</option> <option value="dateammended">Date
Ammended</option> <option value="expreviewdate">Expiration/Review
Date</option> <option value="effectivedate">Effective Date</option>
<option value="e....
Grabt Access To My Protected Files
grabt access to my protected files (2) Hi all, I am sure all of you are great programers but First i am no code programmer i am just
trying to learn to run my sites, will the problem is i got a code from the web to protect my files
,1st i want to know how to work it out then i will try other things but can't let it go without
a fight thanx all php: CODE <?php if ( ! defined( 'myname' )
) { print "You cannot access this file directly."; exit(); }
customer data here ?> now i can't access my files what is the meth....
Security Issue Writing Files
Security issue writing files (1) Hi, first, sorry about my english. i am a beginner with php and i have some question about writing
files using php in a shared hosting. is a risk?, use database to store data is a better way? i just
want make an interface (in php) that write the data in a .html extension file to show to everybody
the html page and just the php interface is to the content manager. thanks in advance ....
How To Insert Post Information Without A Form
How to insert post information without a form (1) I am relatively new with web design so I don't even know exactly what to ask here, but this
can't be as hard as I am making it. I am a merchant and I want to pass just a few simple
strings to the credit card processor: my merchant ID and pin, as well as a price and a few other
simple variables. I want the merchant ID and pin to be invisible to the user. ....
[php]simple Flat File Text Manipulator
Example on how to use forms to write to files in PHP (3) I made a simple flat file text editor, that can show you probably how simple it is to use forms with
php and write that data to file. This example has 2 files, submit.php, and postit.html. Submit.php
is used to write title, and some text, and add html tags, and paragraph tags where new paragraphs
are. Here's the file with comments. I think that HTML really doesn't need some more
explaining. CODE Title: <br /> <input type="text"
name="title" size="53"> <br /> Text: <br />
<textarea nam....
Reading Files From Directory To Array, And Using $_get To Get Them
Simple way to manage lot's of files (2) Some user posted a similar problem i had when i tried to figure out how to update content on my
website in less work as possible. This is just part of the "big" plan i have for my site but it can
be helpfull to you guys if you like FlatFile. I hope that mod's don't mind me posting the
same code here and on their forums, couse if they do i'll delete it from their forums
/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> So
here's the situation. Let's say you have a folder called 'myfilesdirectory' on your
s....
Forms, Text Files, And Php For A Signature Generator.
Help a little. (1) Hello everyone! I am in need of some code a for a signature generator I am making. I am using
BuffaloHELP's code for the php file, now I am trying to improve that code by making a form in a
html file that will have the user say what is on the sig! But now, I need help getting the form
data that is posted by the user to get into that sig! There is a file, sig.txt, where that tells
the php file what text will go on the sig. But how can I make the form data in the html file go into
the text file so it will go onto the sig? You might want to read BuffaloHELP&....
What Does This Do?
$ban = ($data->login) ? $lban : $iban; (4) I'm correcting a 'few' php-files for a friend, but I got this line of code: CODE
$ban = ($data->login) ? $lban : $iban; and I don't know
what it does xD Could someone please explain me what this line does? Thanks....
Problems With Data Formatting
(2) I have a MySQL database which stores articles. A sample article would look like this: CODE This
is a body. This is a body.This is a body.This is a body.This is a body.This is a body.This is a
body.This is a body.This is a body.This is a body.This is a body.This is a body.This is a body.This
is a body.This is a body.This is a body.This is a body. This is a body.This is a body.This is a
body.This is a body.This is a body.This is a body.This is a body.This is a body.This is a body.This
is a body.This is a body.This is a body.This is a body.This is a body. That'....
Putting Data Of 2 Pages In Mysql At Once
(1) suppose i have a page, page.php?part=1 there i have some text fields. user will give input, but
after taking input, it will not put the data in mysql .. but it will take to the next step..
page.php?part=2 (if any field is left blank, it will not go to next page.. ) . and there also some
fields.. after the user has filled that form also, then it will insert all data (from part1 and
part 2) in mysql. i want to ask, how i can collect data from 2 pages and put in mysql at once.....
How Good Is This Data Cleaning Function?
(2) Hi all, this is my first function and as part of a script and i just want to know a couple of
things. here is the code for the function: CODE <? function
clean($dirty_string) { $muddy_string = stripslashes($dirty_string);
$murky_string = strip_tags($muddy_string); $clean_string =
htmlentities($murky_string); }; ?> So the first thing is how secure is
it? the script this will be used in connects to a database and sends an email so it needs to stop
SQL injections and any email ab....
Writing To Files And Such
(3) Ok lets say i have a config.php file, i want to edit something without open it, i know every line
number and that, now how would i do this? I will show you a example: CODE <?php
$CONFIG['user'] = 'root';
$CONFIG['server'] = 'localhost';
$CONFIG['pass'] = '******';
$CONFIG['db'] = '******';
$CONFIG['install'] = '1';
$CONFIG['lang'] ....
Preg_replace Problems
(7) Sigh... preg_replace is getting very annoying for me. Could sombody tell me what I'm doing
wrong? Im making a bbcode replace for the forums I made, and preg_replace is being a b****...
Right now Im working on the tag, and I want to check for valid URL's, because idiots in the
forum are adding js and stuff in the image tags and messing it all up. So i put a function in the
array that holds all of the replacements: CODE
$main_search=array('/\[b\](.*?)\[\/b\]
/is','/\[i\ ....
Help With Preg_replace
(3) I must be a total noob, or just really tired...............-.- either way, I cannot understand what
exactly those funky strings preg_replace wants for the pattern. Could sombody explain to me exactly
what the pattern string and the replace string in preg replace does? I get str_replace...
that's quite basic. I considered myself a pro at php until tonight........haha shows how much i
know. I bet tomorow, if i look it up I'll get it.... Anyway.. any help? Thanks.....
/laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif" />....
Replace A Character In A Specific Tag
(7) I need a code that replaces all spaces between ] brackets with an underscore. So, basically, I
write this into a variable: CODE bla bla something [[some text]] more text here
And I want a script to change it to this: CODE bla bla something [[some_text]]
more text here Any suggestions?....
Files Required?
(5) I want to learn php and I am already on the first steps to doing it. I have set up my server using
easyPHP as well as XAMPP which is a package containing FileZilla, Apache and MySQL. Other than
easyPHP, XAMPP and MySQL, what other softwares are required to be set up for me to successfully
learn how to program with PHP?....
Insert String To Mysql
Important!!! (5) Hi everyone!
I have completed the
MySQL Table creation. but now I have a little larger problem /tongue.gif"
style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />
....
Displaying Files Of A Directory
(2) I want to display the contents of a directory.. i have the following code.. It gives the output in
one column only... like file1 file2 file3 file4 . . . . . Since there are lot of files so this
column gets very long..i want to display the x number of files in each column.. like if there are 22
files.. then file 1 file 11 file 21 file 2 . file 22 file 3 .. . . . file 10
file 20 This was just an example..I know it can be done by using but i dont know how to do it
with loop. Please help me. QUOTE $dir = './'; $handle =....
How To Sort Files Of A Directory using Php
(11) The following code displays the files of folder...but they are displaced by the order of adding... i
want to sord the files / folders alphabetically and sord by accending order and by decending
order.. can some one help me. $path = ""; $dir_handle = @opendir($path) or
die("Unable to open $path"); echo "Directory Listing of $path "; while($file =
readdir($dir_handle)) { if(is_dir($file)) { continue; } else
if($file != '.' && $file != '..') { echo " $fi....
Change Permission With Php Code
code to change files' and folders' permissions? (3) As everyone know, there two ways (that I can think of) to change files' and directories'
permissions. One is to change it in your cPanel's Disk Manager and the other is with an FTP
client that supports chmod. Well, I'm doing something for my site that requires files to have
full permissions (Execute, Write, and Read on all three groups). At first, I thought that if I made
the directory 777, then every file created in that directory will be 777 as well. I'm wrong. An
alternative to doing this is to change each file permission myself, but that would be....
Getting List Of Directories And Files Using Php
PHP Function for Directory and File List (6) is there a php function that lists the content of some folder.... example: /New folder new.txt
left.gif download.zip dc.exe ....so is there..? /rolleyes.gif' border='0'
style='vertical-align:middle' alt='rolleyes.gif' /> ....
Looking for reading, files, read, replace, insert, data, form
|
|
Searching Video's for reading, files, read, replace, insert, data, form
|
advertisement
|
|