> Can someone please help me with this. I am looking for a php script that 
> can
> help me do this.

Form data is accessible as an array stored as variable $_REQUEST. So you can 
use serialize to convert it to a string, send it per mail() and use 
unserialize() to convert mailtext back to an array.

form.html:

<form action="sendmail.php" method="post">
  <input name="user">
  <input name="pass">
  <input type="submit">
</form>


sendmail.php:

<?php
  mail('[EMAIL PROTECTED]','form data',serialize($_REQUEST));
  include('content/mailsend.html');
?>


mailsend.html:

<p>
  form data was send sucessfully.
</p>
<p>
  <a href="readmail.php">click here to restore form data out of an 
email.</a>
</p>


readmail.php

<form action="readmail.php" method="post">
  mail text is:
  <input name="mailtext">
  <input type="submit">
</form>
<pre>
  <?php print_r(unserialize($_REQUEST['mailtext'])); ?>
</pre>


HTH 



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to