Re[2]: [PHP] Variable problem?

2007-07-25 Thread Luc
Hello Richard, Wednesday, July 25, 2007, 12:05:22 AM, you wrote: > I think you're just missing $contato_name = $_POST['contato_name'] in > here somewhere... That was what was missing indeed :-) > That said, if you are using striplashes, you have magic_quotes_gpc on, > and that's something you m

Re: [PHP] Variable problem?

2007-07-24 Thread Richard Lynch
On Tue, July 24, 2007 3:33 pm, Luc wrote: > if (empty($_POST['altura'])){ > $contacter_form_error[] = 'favor preencher altura'; > } > if (empty($_POST['largura'])){ > $contacter_form_error[] = 'favor preencher largura'; > } >

Re: [PHP] Variable problem?

2007-07-24 Thread Luc
Good evening Daniel, It was foretold that on 24/7/2007 @ 17:47:46 GMT-0400 (which was 18:47:46 where I live) Daniel Brown would write: > You're not defining $contato_name. > Do this: > $contato_name = $_POST['contato_name']; Yes!! Oh so simple for a non-newbie lol

Re: [PHP] Variable problem?

2007-07-24 Thread Daniel Brown
[ For those of you who are going to get pissed for top-posting, find something better to bitch about. I'm in a rush, but trying to help. ;-P ] Luc, You're not defining $contato_name. Do this: $contato_name = $_POST['contato_name']; On 7/24/07, Luc <[EMAIL PROTECTED]> wrote:

[PHP] Variable problem?

2007-07-24 Thread Luc
Good afternoon list, Probably a no-brainer for the most of you but i'm in a pickle: i've set up a variable to receive in the body of the notification mail upon sending a form. The body of the mail should read like this: Obrigado por nos contatar, $contato_name. Recebemos sua mensagem e

Re: Re: RE: [PHP] Variable Problem

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 22:50, Sunfire wrote: > no that doesnt work either what you get when you do that one in the edit > box is: > using: > > > or any different with echo in the value field gives me in the box: > }> > ...rest of the script outside the box Spot the difference between your co

Re: Re: RE: [PHP] Variable Problem

2003-02-06 Thread Sunfire
t;[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 12:25 AM Subject: Re: Re: RE: [PHP] Variable Problem > On Thursday 06 February 2003 07:48, Sunfire wrote: > > on any server i ever dealt with if i put: > > > > > in the edit box for the value i always always end up wi

Re: Re: RE: [PHP] Variable Problem

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 07:48, Sunfire wrote: > on any server i ever dealt with if i put: > > > in the edit box for the value i always always end up with what $sent stands for..the only way i found it to work is with echo <<< but > maybe im missing something With the above you should end up

Re: Re: RE: [PHP] Variable Problem

2003-02-05 Thread Chris Shiflett
--- Sunfire <[EMAIL PROTECTED]> wrote: > on any server i ever dealt with if i put: > > > in the edit box for the value i always always end up > with way i found it to work is with echo <<< but maybe im > missing something You are "missing" correct PHP syntax and correct HTML syntax, so I guess th

Re: Re: RE: [PHP] Variable Problem

2003-02-05 Thread Sunfire
on any server i ever dealt with if i put: > in the edit box for the value i always always end up with To: "Sunfire" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 5:44 PM Subject: Spam: Re: RE: [PHP] Variable Problem > --- Sunfire <[E

Re: RE: [PHP] Variable Problem

2003-02-05 Thread Chris Shiflett
--- Sunfire <[EMAIL PROTECTED]> wrote: > you can do: > echo << //any valid html code here > > BLOCK; No, he needed to output $sent, which is dynamic. Also, it is a lot cleaner (and likely faster) just to use to switch in/out of PHP as needed. If you're writing a bunch of static HTML, there's no

Re: RE: [PHP] Variable Problem

2003-02-05 Thread Sunfire
0 lines of code a block... - Original Message - From: "Leonard Burton" <[EMAIL PROTECTED]> To: "Sierra Times.com" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 4:16 PM Subject: Spam: RE: [PHP] Variable Problem > You

Re: Re: [PHP] Variable Problem

2003-02-05 Thread Sunfire
if you want to get variables into a form by value= do something like this: and so on - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 3:59 PM Subject: Spam: Re: [PHP] Variable Problem >

RE: [PHP] Variable Problem

2003-02-05 Thread Leonard Burton
ECTED] Subject: [PHP] Variable Problem I have a variable that get's chopped off at the %20 character. In the form page I have: From: E-mail address: $sent and $name shows up fine, but immedieately I added (for testing) > > this statement shows a text box, with only

Re: [PHP] Variable Problem

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:41, Sierra Times.com wrote: > I have a variable that get's chopped off at the %20 character. > > In the form page I have: > From: > E-mail address: > > > $sent and $name shows up fine, but immedieately I added (for testing) > > > > > > > this statemen

[PHP] Variable Problem

2003-02-05 Thread Sierra Times.com
I have a variable that get's chopped off at the %20 character. In the form page I have: From: E-mail address: $sent and $name shows up fine, but immedieately I added (for testing) > > this statement shows a text box, with only the first word before the space charcter "%20" is

RE: [PHP] Variable problem

2002-03-22 Thread Chris
On 22 Mar 2002 at 17:27, Rick Emery wrote: > ${varable}ABC in quotes you can help php with {$(varabl)}ABC > > > -Original Message- > From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 22, 2002 5:21 PM > To: Rick Emery > Subject: Re

RE: [PHP] Variable problem

2002-03-22 Thread Rick Emery
${varable}ABC -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 5:21 PM To: Rick Emery Subject: Re: [PHP] Variable problem on 3/22/02 6:18 PM, Rick Emery at [EMAIL PROTECTED] wrote: show your code -Original Message- From

RE: [PHP] Variable problem

2002-03-22 Thread Rick Emery
show your code -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 5:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable problem I have a variable name in a print <<< END and then some text after it. The thing is, php thinks that th

[PHP] Variable problem

2002-03-22 Thread Leif K-Brooks
I have a variable name in a print <<< END and then some text after it. The thing is, php thinks that the text is part of the variable name, which makes the variable, and the text after it, not show up. But, if I put a space, it makes my html not work right. Any ideas? -- PHP General Mailing

[PHP] Variable problem with a function calling a ext. librairy

2002-02-21 Thread Marc Andre Paquin
Hello, I created a librairy with configuration setting: background color, font size, customer's name, etc. Like this: (lib_config.inc) $bgcolor = "#ff"; $co = "ABC enterprise"; A second file is building html page headders: (lib_intra.inc) function title($name_section,$name_page){ print "\

Re: [PHP] Variable problem

2002-02-04 Thread Randy Johnson
nt: Friday, January 18, 2002 2:26 PM Subject: RE: [PHP] Variable problem > Use an array !?, I mean : > > $result[$i] = "test"; > > > How do I combine the following so it is treated as one variable > > > > $i=10 > > > > $result$i="tes

RE: [PHP] Variable Problem

2002-01-19 Thread Philip Olson
> > Well, I'll try the technique you mentioned. > > Your offering is very appreciated. > > Thank you! > > :-] > > > > ps. > > execute me for my english... > > > > --- > > K.Tomono > > > > >

RE: [PHP] Variable Problem

2002-01-18 Thread Steven Maroney
ecute me for my english... > > --- > K.Tomono > > > > -Original Message- > > From: Philip Olson [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, January 19, 2002 2:30 PM > > To: —F–쌤Œá > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED

Re: [PHP] Variable Problem

2002-01-18 Thread Jason Wong
On Saturday 19 January 2002 14:45, K.Tomono wrote: > Yes, I think too, it's better way to use an array rather than a dynamic > name of the variable. > > I thought that the first question means how to use a dynamic variable. > > By the way, > > > little array propaganda, jic :) Arrays work great

RE: [PHP] Variable Problem

2002-01-18 Thread K.Tomono
¤Œá > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Variable Problem > > > > > How do I combine the following so it is treated as one variable. > > It's a good question, but why? Most likely an array will > work best for > this job, arrays are go

Re: [PHP] Variable Problem

2002-01-18 Thread Philip Olson
> How do I combine the following so it is treated as one variable. It's a good question, but why? Most likely an array will work best for this job, arrays are good: http://www.php.net/manual/en/language.types.array.php The man page on foreach is nice too, and has many examples which include

Re: [PHP] Variable Problem

2002-01-18 Thread
Hello. >How do I combine the following so it is treated as one variable > >$i=10 >$result$i="test"; > >I want this to be: > >$result10="test"; > >$i changes so I cannot just put in 10 instead of I. >anybody know how i can do that? > >TIA >Randy How about the below. or Cheers :-) ---

RE: [PHP] Variable problem

2002-01-18 Thread Yoel Benitez Fonseca
Use an array !?, I mean : $result[$i] = "test"; > How do I combine the following so it is treated as one variable > > $i=10 > > $result$i="test"; > > > I want this to be: > > > $result10="test"; > > > $i changes so I cannot just put in 10 instead of I. > > > anybody know how i can do that? -

Re: [PHP] Variable Problem

2002-01-18 Thread val petruchek
Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 19, 2002 2:47 AM Subject: [PHP] Variable Problem > > > How do I combine the followin

[PHP] Variable Problem

2002-01-18 Thread programmer
How do I combine the following so it is treated as one variable $i=10 $result$i="test"; I want this to be: $result10="test"; $i changes so I cannot just put in 10 instead of I. anybody know how i can do that? TIA Randy -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] variable problem - help!

2002-01-16 Thread Rick Emery
$row[coloumname_${v$ariable}] -Original Message- From: Dani [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 8:36 AM To: [EMAIL PROTECTED] Subject: [PHP] variable problem - help! Importance: High Hi! I 'm trying not to hard code my php coding and I'm trying

Re: [PHP] variable problem - help!

2002-01-16 Thread Dani
Thanks for the reply! I really appriciate it! I'll try it first! regards, Dani Stefan Rusterholz wrote: > > Hi! > > > > I 'm trying not to hard code my php coding and I'm trying to pass a > > variable name into the $row[coloumname_$variable]; > $row["columname_$variable"] should do it. > $row

Re: [PHP] variable problem - help!

2002-01-16 Thread Stefan Rusterholz
> Hi! > > I 'm trying not to hard code my php coding and I'm trying to pass a > variable name into the $row[coloumname_$variable]; $row["columname_$variable"] should do it. $row[constant] is threaten as constant which is normally not the programmers intention (set_error_reporting(0) and you'll see

Re: [PHP] variable problem - help!

2002-01-16 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 16-01-02 at 12:45 * Dani said > Hi! > > I 'm trying not to hard code my php coding and I'm trying to pass a > variable name into the $row[coloumname_$variable]; > > I get an error message for this code. > > I'm just wondering if I could

[PHP] variable problem - help!

2002-01-16 Thread Dani
Hi! I 'm trying not to hard code my php coding and I'm trying to pass a variable name into the $row[coloumname_$variable]; I get an error message for this code. I'm just wondering if I could do this trick using other ways of writing it. Thanks for reviewing! regards, Dani -- PHP General Ma

Re: [PHP] Variable Problem when UPGRADING...

2001-01-30 Thread Richard Lynch
://chatmusic.com/volunteer.htm - Original Message - From: James Smith <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Tuesday, January 30, 2001 1:54 AM Subject: [PHP] Variable Problem when UPGRADING... > Alright, when i was programming with PHP3, I would use > if statements like t

Re: [PHP] Variable Problem when UPGRADING...

2001-01-30 Thread Teodor Cimpoesu
James Smith wrote: > > Alright, when i was programming with PHP3, I would use > if statements like this: > > if(!$submit) { >// display form > } else { >// display signup complete > } > > to make multiple pages. Or I would do this: > > if($action == "signup") { >if(!$submit) { >

Re: [PHP] Variable Problem when UPGRADING...

2001-01-30 Thread Philip Olson
hi again james, btw, consider doing this : if (empty($submit)) { or if (!empty($submit)) { as it doesn't run into such problems. or use isset although i tend to almost always use empty, i LOVE empty() !!! each have their uses : http://www.php.net/manual/en/function.empty.php

Re: [PHP] Variable Problem when UPGRADING...

2001-01-29 Thread Philip Olson
this has to do with error reporting, using the function : http://www.php.net/manual/en/function.error-reporting.php definition of types : http://www.php.net/manual/en/phpdevel-errors.php you may have E_ALL or E_NOTICE on within php.ini philip olson http://www.cornado.com/ On Mon, 29 Jan 2

[PHP] Variable Problem when UPGRADING...

2001-01-29 Thread James Smith
Alright, when i was programming with PHP3, I would use if statements like this: if(!$submit) { // display form } else { // display signup complete } to make multiple pages. Or I would do this: if($action == "signup") { if(!$submit) { //display form } else { // display s