Re: Re: I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the help already.  I am still struggling.  I didn't have any luck
with urlencode(), but I used htmlentities() and the variable did get passed
as a section of HTML code.  When I sent the mail, however, it displayed as
text within the e-mail message and not as a table.  I was using these mail
headers:

MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1

Any other ideas would be appreciated.  Thank you -- Monique.

This is from the e-mail message that was delivered by the program:
**************
Content-type: text/html; charset=iso-8859-1

From: monique@xxxxxxxxxxx <monique@xxxxxxxxxxx>

Reply-To: monique@xxxxxxxxxxx <monique@xxxxxxxxxxx>

Sender: monique@xxxxxxxxxxx <monique@xxxxxxxxxxx>

>From monique@xxxxxxxxxxx

To monique@xxxxxxxxxxx

>From test

Subject Your message From test

Message


<html>

<body bgcolor=\"ffe3bf\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\"
marginheight=\"0\">

<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
class=\"big\">

<tr>

<td width=\"3%\" rowspan=\"3\" bgcolor=\"666666\">

<a href=\"../index.php\"><img src=\"../images/logo.png\" name=\"image\"
width=\"97\" height=\"115\" border=\"0\"></a></td>

<td width=\"97%\" height=\"80\" bgcolor=\"666666\" class=\"logo\"><table
width=\"90%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"
class=\"xbig\">

<tr>

....etc....

***********


"Richard Lynch" <ceo@xxxxxxxxx> wrote in message
news:1265.66.99.91.45.1103300212.squirrel@xxxxxxxxxxxxxxxx
>
>
> You need to http://php.net/urlencode anything you echo into a HIDDEN INPUT
> so that the HTML tags in it don't get used by the browser display
> rendering engine.
>
>
> Monique Verrier wrote:
> > Hi David --
> >
> > When I do that, it creates a problem because it displays a "> at the
> > bottom
> > of my screen.  It is making me crazy!  I think it has to do with all the
> > quotes in the HTML, but I don't know how to deal with it.  I have listed
> > the
> > code below.  Do you have any ideas?  Thank you for you help.
> >
> > Monique.
> > **************************
> > $hmessage = '
> > <html>
> > <body bgcolor="ffe3bf" leftmargin="0" topmargin="0" marginwidth="0"
> > marginheight="0">
> > <table width="100%" border="0" cellpadding="0" cellspacing="0"
> > class="big">
> >   <tr>
> >     <td width="3%" rowspan="3" bgcolor="666666">
> >       <a href="../index.php"><img src="../images/logo.png" name="image"
> > width="97" height="115" border="0"></a></td>
> >     <td width="97%" height="80" bgcolor="666666" class="logo"><table
> > width="90%" border="0" cellpadding="2" cellspacing="1" class="xbig">
> >       <tr>
> >         <td width="100%" align="center"><h4><font
color="FFE3BF">Courtesy
> > of
> > Costill.Com</font></h4></td>
> >       </tr>
> >     </table>
> >     </td>
> > </tr>
> >   <tr>
> >     <td bgcolor="CCCCCC" class="xbig">&nbsp;</td>
> >   </tr>
> > </table>
> >
> > <table width="80%" border="0" align="center" class="bodystyle">
> >   <tr>
> >     <td>'.$message.'<table width="100%" border="0">
> >     <tr>
> >       <td>To: '.$recemail.'</td>
> >       <td>To: '.$rname.'</td>
> >     </tr>
> >     <tr>
> >       <td>From: '.$sendername.'</td>
> >     </tr>
> >     <tr>
> >       <td>'.$mailmessage.'</td>
> >     </tr>
> >     <tr>
> >       <td>&nbsp;</td>
> >     </tr>
> >     <tr>
> >       <td height="331">&nbsp;
> >         <table width="100%" border="0">';
> >   //okay a lot of the html is in $hmessage
> >
> >   mysql_data_seek ($rsList, 0);
> >
> >         do { $hmessage .='<tr><td height="65">'.
> >       $row_rsList['name'].'<br>'.
> >             $row_rsList['addr'].'<br>'.
> >             $row_rsList['csz'].'<br><td>'.
> >    $row_rsList['tel'].'</td><td>Type: '.
> >    $row_rsList['type'].'</td></tr><tr><td colspan="4">';
> >
> >    if (!is_null($row_rsList['category'])) {$hmessage
> > .=$row_rsList['category'];}
> >    $hmessage .= "</td></tr>";
> >    if (!is_null($row_rsList['comments']))
> >      {
> >      $hmessage .='<tr><td colspan="4">'.$lblcomment;
> >      $hmessage .= $row_rsList['comments'];
> >      $hmessage .="</td></tr>";
> >      }
> >           $hmessage .='<tr><td colspan="4"><hr></td></tr>';
> >
> >           } while ($row_rsList = mysql_fetch_assoc($rsList));
> >
> >
> >           $hmessage
.='</table></td></tr></table></div></td></tr></table>
> >               <table width="100%" border="0" cellspacing="0"
> > cellpadding="2"
> > bgcolor="CCCCCC">
> >    <tr> <td> ©2004 <a href="www.costill.com"></a> </td>
> >     <td
> > align="right">www.healdsburgmenus.com</td></tr></table></body></html>';
> >
> >
> > ***************************
> >
> > "David Robley" <robleyd@xxxxxxxxxxxxxx> wrote in message
> > news:20041217043549.36217.qmail@xxxxxxxxxxxxxxx
> >> On Fri, 17 Dec 2004 14:32, Monique Verrier wrote:
> >>
> >> > Hi!
> >> >
> >> > I have an html string stored in $message.  I "submit" the form to a
> >> > subroutine and the value in $message is lost.  All the other
variables
> >> > come
> >> > into feedback.php just fine.  I would love any help.  This is a new
> >> > language for me so any suggestions for streamlining my code would
also
> > be
> >> > much
> >> > appreciated.  Thanks -- Monique.
> >> >
> >> > Here's my code:
> >> >
> >> > <?php
> >> > $message=getmsg($message,$recemail,$sendername,$mailmessage,$rsList
> >> $rname);
> >> >       mysql_free_result($rsList);
> >> >      echo $message;  // this displays perfectly
> >> > ?>
> >> >
> >> >   <form name="maillist" method="post" action="<?php echo
> >> "feedback.php";
> >> > ?>">
> >> >   <div align="right">
> >> >     <input name="email" type="hidden" value="<?php echo $email; ?>">
> >> >     <input type="hidden" name="recipient" value="<?php echo
> >> $recipient;
> >> >     ?>"> <input type="hidden" name="redirect" value="<?php echo
> > $redirect;
> >> >     ?>"> <input type="hidden" name="name" value="<?php echo $rname;
> >> ?>">
> >> >     <input type="hidden" name="env_report" value="on">
> >> >     <input type="hidden" name="message" value="<?php $message; ?>">
> >>
> >> I think if you were to actually echo $message here, it should display
in
> > the
> >> hidden field as you expect, and hence be passed as part of the form
data
> > to
> >> the target script.
> >>
> >> >     <input type="hidden" name="subject" size="40" value="<?php echo
> >> > $subject; ?>" class="form">
> >> >     <input type="hidden" name="required"
> >> > value="Name,Email,Subject,Updates,Message">
> >> >   </div>
> >> >     <div align="right">
> >> >       <input type="submit" name="Submit" value="Send!">
> >> >     </div>
> >> >   </form>
> >>
> >> --
> >> David Robley
> >>
> >> A cat is the universe's way of showing us perfection.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> -- 
> Like Music?
> http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux