+ Reply to Thread
Results 1 to 3 of 3

Thread: Saving echoed form page

  1. #1
    commguy is offline x10Hosting Member commguy is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    6

    Unhappy Saving echoed form page

    Hi everyone. I'm a noob at scripting and have hit a wall. I'm trying to create a form that sends user input to a formatted html file that users can save and use (it's an e-mail signature template).

    The form and resulting page look fine, but I'm having trouble with the saving part... I don't know how to save it directly and if I prompt users to "save as" HTML they will not have the graphics. If they save as a web page complete, the user data is missing.

    Any suggestions to get me on the right track are greatly appreciated. And a bottle of Scotch for anyone with a solution!

    Here's a link to where I am now:
    http://trainacomm.exofire.net/signature.htm

    Here's a link to another site that does what I'm attempting to do:
    http://www.vsubhash.com/projects/ema...nature_gen.asp

    MY UGLY PHP FILE:
    <html>
    <body>
    <font size="2" face="Arial">
    ________________________________________
    <br>
    <span style="text-transform: uppercase">
    <br><?php echo $_POST["fname"]; ?></span></b><span style="text-transform: uppercase">
    </span>
    <br><?php echo $_POST["title"]; ?>
    <br>
    <br></font></b><font size="2" face="Arial">1111 Seveda Blvd. | Torrance, CA 90505<br>
    </b>+1-<?php echo $_POST["phone"]; ?> | +1-<?php echo $_POST["fax"]; ?> | +1-<?php echo $_POST["mobile"]; ?><br>
    <span style='color:#DE2020'>companyname.com
    <br>
    <br>
    </span></font><font face="Arial">
    <img border="0" src="conill2.gif" width="90" height="53"><br>
    <font color="#666666"><br>
    </font><font size="1"><font color="#333333">
    <img border="0" src="twit.gif" width="15" height="15">&nbsp;
    </font><a href=http://twitter.com style="text-decoration: none">
    <font color="#333333">Follow us on Twitter</font></a><font color="#333333"><br>
    <img border="0" src="face.gif" width="15" height="15">&nbsp;
    </font>
    <a href="http://www.facebook.com/" style="text-decoration: none">
    <font color="#333333">Join the Nuevo America on Facebook</font></a></font></font>

    </body>
    </html>

    THE FORM PAGE:
    <html>
    <body>
    <form action="welcome.php" method="post" target="_test.htm">
    <font face="Arial">
    &nbsp;
    </font>
    <b><font face="Arial">E-Mail Signature Maker<br>
    </font></b><font face="Arial" size="2"><b><br>
    </b></font>
    <font size="2"><font face="Arial"><br>
    </font>
    <br>
    </font><font face="Verdana"><font size="2">Name:&nbsp; </font>
    <input type="text" name="fname" size="39" /><font size="2"> <br>
    <br>
    Title:&nbsp;&nbsp; </font> <input type="text" name="title" size="39" /><font size="2">
    <br>
    <br>
    Phone: </font> <input type="text" name="phone" size="39" /><font size="2"> <br>
    <br>
    Fax:&nbsp;&nbsp;&nbsp; </font> <input type="text" name="fax" size="39" /><font size="2">
    <br>
    <br>
    Mobile:</font><input type="text" name="mobile" size="39" /><font size="2"> (this is optional)
    <br>
    <br>
    </font></font><font size="2"><br>
    </font>
    <input type="submit" value="SUBMIT" /><font size="2"> </font>
    </form>
    </body>
    </html>

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Saving echoed form page

    You could use the Zip module and create an archive with the HTML and the images, then output that. What e-mail apps is the e-mail signature intended for? Outlook?
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    commguy is offline x10Hosting Member commguy is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    6

    Re: Saving echoed form page

    Thanks for the tip (and the link), I'll give this a try. The signature is intended for Lotus Notes.

+ Reply to Thread

Similar Threads

  1. Edit .php page with a form
    By driveflexfuel in forum Programming Help
    Replies: 9
    Last Post: 02-28-2009, 11:20 AM
  2. Simple PHP Email Sending Form
    By dquigley in forum Programming Help
    Replies: 10
    Last Post: 12-13-2008, 02:33 PM
  3. [REQ][$$$]1 page image flash redesign for choclate sales
    By tgkprog in forum The Marketplace
    Replies: 5
    Last Post: 11-17-2008, 09:53 AM
  4. Load Pages from one Page via URI
    By VPmase in forum Tutorials
    Replies: 1
    Last Post: 05-02-2008, 01:35 AM
  5. How to put a direct contact form on my page
    By monster061 in forum Scripts & 3rd Party Apps
    Replies: 6
    Last Post: 11-01-2007, 06:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers