Re: [PHP] method=post problem

2002-05-15 Thread Analysis & Solutions

On Wed, May 15, 2002 at 09:27:55PM -0400, Jule wrote:
> 
> 
> 
> when it comes back and goes into the loop. Only the first name from 
> $quiz[owner_name] is left, so where it used to be John Doe, is now only Joe.

You're missing quotes around the attribute values.  Thus, the system is
assuming only the first thing following the value is the value.  Write
your HTML up to spec and you'll be fine.

 echo '';

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




Re: [PHP] method=post problem

2002-05-15 Thread Miguel Cruz

On Wed, 15 May 2002, Jule wrote:
> 
> 
> but now here's the problem: 
> when it comes back and goes into the loop. Only the first name from 
> $quiz[owner_name] is left, so where it used to be John Doe, is now only Joe.
> how do i fix this?

Your HTML is invalid. You have to quote non-numeric values.

  

Otherwise it ends up looking like:

  

and it thinks "Doe" is some other attribute to the input tag.

miguel


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




Re: [PHP] method=post problem

2002-05-15 Thread Janet Valade

You need double quotes around the value. E.g.,



- Original Message -
From: "Jule" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 6:27 PM
Subject: [PHP] method=post problem


Hey guys and gals,

i have a form with method=post which sends







to the same page, and  picks it up in an
if ($submitted) {} loop.

but now here's the problem:
when it comes back and goes into the loop. Only the first name from
$quiz[owner_name] is left, so where it used to be John Doe, is now only Joe.
how do i fix this?

thanks

Jule
--
|\/\__/\/|
|   Jule Slootbeek |
|   [EMAIL PROTECTED] |
|   http://blindtheory.cjb.net |
|   __ |
|/\/   \/\|

--
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




RE: [PHP] method=post problem

2002-05-15 Thread John Holmes

Use quotes and a little common sense.



How do you expect HTML to know that you mean John Doe to be the entire
value? Computers only do what you tell them.



So what's the value there? Is it 'John', 'John Doe', 'John Doe crap=foo'
or what??

Hope you see the point...



---John Holmes...

> -Original Message-
> From: Jule [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 9:28 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] method=post problem
> 
> Hey guys and gals,
> 
> i have a form with method=post which sends
> 
> 
> 
> 
> 
> 
> 
> to the same page, and  picks it up in an
> if ($submitted) {} loop.
> 
> but now here's the problem:
> when it comes back and goes into the loop. Only the first name from
> $quiz[owner_name] is left, so where it used to be John Doe, is now
only
> Joe.
> how do i fix this?
> 
> thanks
> 
> Jule
> --
> |\/\__/\/|
> |   Jule Slootbeek |
> |   [EMAIL PROTECTED]  |
> |   http://blindtheory.cjb.net |
> |   __ |
> |/\/\/\|
> 
> --
> 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] method=post problem

2002-05-15 Thread Jule

Hey guys and gals,

i have a form with method=post which sends 







to the same page, and  picks it up in an 
if ($submitted) {} loop.

but now here's the problem: 
when it comes back and goes into the loop. Only the first name from 
$quiz[owner_name] is left, so where it used to be John Doe, is now only Joe.
how do i fix this?

thanks

Jule
-- 
|\/\__/\/|
|   Jule Slootbeek   |
|   [EMAIL PROTECTED]|
|   http://blindtheory.cjb.net   |
|   __   |
|/\/  \/\|

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