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

2004-12-17 Thread Monique Verrier
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: [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Reply-To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Sender: [EMAIL PROTECTED] <[EMAIL PROTECTED]>

>From [EMAIL PROTECTED]

To [EMAIL PROTECTED]

>From test

Subject Your message From test

Message


















etc

***


"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> 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 = '
> > 
> >  > marginheight="0">
> >  > class="big">
> >   
> > 
> >> width="97" height="115" border="0">
> >  > width="90%" border="0" cellpadding="2" cellspacing="1" class="xbig">
> >   
> > Courtesy
> > of
> > Costill.Com
> >   
> > 
> > 
> > 
> >   
> >  
> >   
> > 
> >
> > 
> >   
> > '.$message.'
> > 
> >   To: '.$recemail.'
> >   To: '.$rname.'
> > 
> > 
> >   From: '.$sendername.'
> > 
> > 
> >   '.$mailmessage.'
> > 
> > 
> >    
> > 
> > 
> >    
> > ';
> >   //okay a lot of the html is in $hmessage
> >
> >   mysql_data_seek ($rsList, 0);
> >
> > do { $hmessage .=''.
> >   $row_rsList['name'].''.
> > $row_rsList['addr'].''.
> > $row_rsList['csz'].''.
> >$row_rsList['tel'].'Type: '.
> >$row_rsList['type'].'';
> >
> >if (!is_null($row_rsList['category'])) {$hmessage
> > .=$row_rsList['category'];}
> >$hmessage .= "";
> >if (!is_null($row_rsList['comments']))
> >  {
> >  $hmessage .=''.$lblcomment;
> >  $hmessage .= $row_rsList['comments'];
> >  $hmessage .="";
> >  }
> >   $hmessage .='';
> >
> >   } while ($row_rsList = mysql_fetch_assoc($rsList));
> >
> >
> >   $hmessage
.='
> >> cellpadding="2"
> > bgcolor="CC">
> >  ©2004  
> >  > align="right">www.healdsburgmenus.com';
> >
> >
> > ***
> >
> > "David Robley" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >> 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:
> >> >
> >> >  >> > $message=getmsg($message,$recemail,$sendername,$mailmessage,$rsList
> >> $rname);
> >> >   mysql_free_result($rsList);
> >> >  echo $message;  // this displays perfectly
> >> > ?>
> >> >
> >> >>> > ?>">
> >> >   
> >> > 
> >> >   
> >> > 
> >> > 
> >>
> >> 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.
> >>
> >> > 
> >> >  >> > value="Name,Email,Subject,Updates,Message">
> >> >   
> >> > 
> >> >   
> >> > 
> >> >   
> >>
> >> --
> >> 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



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

2004-12-17 Thread Monique Verrier
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 = '



  

  

  
Courtesy of
Costill.Com
  



  
 
  



  
'.$message.'

  To: '.$recemail.'
  To: '.$rname.'


  From: '.$sendername.'


  '.$mailmessage.'


   


   
';
  //okay a lot of the html is in $hmessage

  mysql_data_seek ($rsList, 0);

do { $hmessage .=''.
  $row_rsList['name'].''.
$row_rsList['addr'].''.
$row_rsList['csz'].''.
   $row_rsList['tel'].'Type: '.
   $row_rsList['type'].'';

   if (!is_null($row_rsList['category'])) {$hmessage
.=$row_rsList['category'];}
   $hmessage .= "";
   if (!is_null($row_rsList['comments']))
 {
 $hmessage .=''.$lblcomment;
 $hmessage .= $row_rsList['comments'];
 $hmessage .="";
 }
  $hmessage .='';

  } while ($row_rsList = mysql_fetch_assoc($rsList));


  $hmessage .='
  
 ©2004  
www.healdsburgmenus.com';


***

"David Robley" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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:
> >
> >  > $message=getmsg($message,$recemail,$sendername,$mailmessage,$rsList
> $rname);
> >   mysql_free_result($rsList);
> >  echo $message;  // this displays perfectly
> > ?>
> >
> >> ?>">
> >   
> > 
> >   
> > 
> > 
>
> 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.
>
> > 
> >  > value="Name,Email,Subject,Updates,Message">
> >   
> > 
> >   
> > 
> >   
>
> -- 
> 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



[PHP] I got the mail form blues! HTML/POST/mail() question - Also request for style suggestions

2004-12-16 Thread Monique Verrier
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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Lost Variables

2004-11-23 Thread Monique Verrier
Thank you, Alberto.  Do you know -- does the extract() function not work?

Monique.


"Abrea" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> To turn $_POST["var1"], $_POST["var2"], $_POST["var3"] into $var1, $var2,
> $var3:
>
> if(isset($_POST))
>  { foreach($_POST as $key=>$value)
>  { $$key= $value; print("$$key= $value; "); }}
>
> This should do it. The print statement is just to check the result.
> Regards
>
> Alberto Brea
>
>
> -Original Message-
> From: "Monique Verrier" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Date: Tue, 23 Nov 2004 12:52:29 -0800
> Subject: [PHP] Lost Variables
>
> > First -- thank you for reading my post.
> >
> > I am using the general strategy suggested by Jay (thanks, Jay) to
> > process my
> > form in another procedure.  It's listed below.  In my processStuff.php
> > program, I use the following code:
> >
> > $attributes = array();
> > $attributes = array_merge($attributes,$HTTP_POST_VARS, $HTTP_GET_VARS);
> > extract($attributes, EXTR_PREFIX_SAME, "this");
> >
> > I want to load my numerous post variables into regular memory variables
> > (or
> > whatever the php nomenclature is) -- e.g. $_POST['action'] becomes
> > $action.
> > It doesn't seem to working according to the manual.  I list my
> > $HTTP_SESSION_VARS, there are none.
> >
> > I would appreciate anyone taking the time to explain to me how this
> > works.
> > Either it's stupid or I'm stupid.  I'm figuring it's me.
> >
> > Monique.
> >
> >
> >
> >
> > 
> > 
> > 
> >
> > In processStuff.php
> >
> >  > switch ($_POST['action']){
> > case "Add Record":
> > ...do stuff...
> > ..redirect back to original page...
> > break;
> >
> > case "Delete Record":
> > ...do stuff...
> > ..redirect back to original page...
> > break;
> >
> > }
> > ?>
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >

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



[PHP] Lost Variables

2004-11-23 Thread Monique Verrier
First -- thank you for reading my post.

I am using the general strategy suggested by Jay (thanks, Jay) to process my
form in another procedure.  It's listed below.  In my processStuff.php
program, I use the following code:

$attributes = array();
$attributes = array_merge($attributes,$HTTP_POST_VARS, $HTTP_GET_VARS);
extract($attributes, EXTR_PREFIX_SAME, "this");

I want to load my numerous post variables into regular memory variables (or
whatever the php nomenclature is) -- e.g. $_POST['action'] becomes $action.
It doesn't seem to working according to the manual.  I list my
$HTTP_SESSION_VARS, there are none.

I would appreciate anyone taking the time to explain to me how this works.
Either it's stupid or I'm stupid.  I'm figuring it's me.

Monique.








In processStuff.php



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



[PHP] Quick Question re: Input

2004-11-22 Thread Monique Verrier
Hi!

This is what I want to do:

When the user presses the submit button, run a function along the lines of:



The addrecord function basically runs an SQL insert.  This seems as though
it should be uncomplicated.   All the code that I look at has the page
calling itself again and running code that wasn't used the first time based
on some switch.  Does anyone know if there is some other kind of solution?
This seems so messy to me.  I would prefer to keep the function in the page.

I am learning php, so please be kind!

Thanks for any and all advice!

Monique.

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