Re: [PHP-WIN] initialize variables

2003-01-14 Thread Per Lundberg
Wade wrote: $total= 0; echo 'Your order was for the following:'; echo 'Entree: "' . $_POST . $Course1 . '"'; echo 'Dessert: "' . $_POST . $ListBox2 . '"'; foreach (array($Course1, $ListBox2) as $val) { if (ereg('[0-9]+', $val, $regs)) $total += $regs[0];

RE: [PHP-WIN] initialize variables

2003-01-13 Thread Howard, Robert P
Howard -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 5:56 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] initialize variables 01132003 2251 CST Thanks Robert. I was close before. I had tried something similar but just didnt get it straight. Have

Re: [PHP-WIN] initialize variables

2003-01-13 Thread Wade
e array. As such $_POST['Course1'] is the replacement of $Course1. Keep on trying. Rob Howard -Original Message----- From: Wade [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 5:13 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] initialize variables 01132003 2203 CST I tho

RE: [PHP-WIN] initialize variables

2003-01-13 Thread Howard, Robert P
th the names of each of the POST variables as Keys to the array. As such $_POST['Course1'] is the replacement of $Course1. Keep on trying. Rob Howard -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 5:13 PM To: [EMAIL PROTECTED] Subject: Re: [PHP

Re: [PHP-WIN] initialize variables

2003-01-13 Thread Wade
g concatenation? Its a way ogf combining strings into one. $string = 'Hello'; $string = $string . ' World'; echo $string; would output 'Hello World' -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 4:02 PM To: [EMAIL PR

RE: [PHP-WIN] initialize variables

2003-01-13 Thread Sean Malloy
[EMAIL PROTECTED] Subject: Re: [PHP-WIN] initialize variables 01132003 2059 CST Sean, Thats a new one for me. In the line below, what does the " ' . $Entrees[0] . ' "> do? The " . ", do they have some value or do they negate something? echo &#x

Re: [PHP-WIN] initialize variables

2003-01-13 Thread Wade
01132003 2059 CST Sean, Thats a new one for me. In the line below, what does the " ' . $Entrees[0] . ' "> do? The " . ", do they have some value or do they negate something? echo '' . $Entrees[0] . ''; Wade -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://

RE: [PHP-WIN] initialize variables

2003-01-13 Thread Sean Malloy
nt($Entrees); // count the number of elements within the array // loop through the array showing each record within the array for ($i = 0; $i < $records; $i++) { echo '' . $Entrees[$i] . ''; } echo ''; echo ''; echo ''; ?>

[PHP-WIN] initialize variables

2003-01-13 Thread Wade
01132003 2014 CST Ok. Im so happy that you guys explained the $_POST thing to me. Just implementing that in every tutorial after that worked. Now, I have another problem. This, again, is right out of the book. Everything in this book is in . What is it that I cannot see and my book will not t

RE: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Mikey
The variable is $_POST - PHP is case sensitive... Mikey > -Original Message- > From: Wade [mailto:[EMAIL PROTECTED]] > Sent: 13 January 2003 16:31 > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] initialize variables (was: Using the GET Method) > > > 0113200

Re: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Wade
01132003 0826 CST Ok. This code is right off the PHP.net site. I changed the action="action.php" to action="form.php" only. But, when I run the page I receive "Hi . You are years old." Only. Is this because I have global_variables turned off, even through Im using $_post? Wade ** PH

RE: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Sean Malloy
[mailto:[EMAIL PROTECTED]] Sent: Monday, 13 January 2003 8:22 PM To: Stephen Edmonds Cc: PHP Windows Helplist Subject: Re: [PHP-WIN] initialize variables (was: Using the GET Method) Just wanted to say thanks to those of you who've helped me on this one! =) Thanks... One more question to clari

Re: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Dash McElroy
On Mon, 13 Jan 2003, Bobo Wieland wrote: > Just wanted to say thanks to those of you who've helped me on this one! =) > Thanks... > > One more question to clarify one thing, though: > > if someone is calling 'index.php' like this: 'index.php?i=10' > > and on that page I have: > > while ($i <= 10)

Re: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-13 Thread Bobo Wieland
n.com/bobo/ www.elstudion.com - Original Message - From: "Stephen Edmonds" <[EMAIL PROTECTED]> To: "Bobo Wieland" <[EMAIL PROTECTED]> Cc: "PHP Windows Helplist" <[EMAIL PROTECTED]> Sent: Sunday, January 12, 2003 4:15 PM Subject: Re: [PHP-

Re: [PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-12 Thread Stephen Edmonds
- Original Message - From: "Bobo Wieland" <[EMAIL PROTECTED]> To: "Sean Malloy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, January 12, 2003 2:59 PM Subject: [PHP-WIN] initialize variables (was: Using the GET Method) > Please, explain

[PHP-WIN] initialize variables (was: Using the GET Method)

2003-01-12 Thread Bobo Wieland
Please, explain this to me, because I couldn't figure it out by myself... If register_globals is set to 'off', and because it's good practice, you should allways initzialize your variables? So I should write: $test = $_POST['test']; and then I can use $test as usuall... But what about local varia