RE: form vars missing...

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

 



One doesn't need the VALUE when the INPUT is of type TEXT. Sematic
of VALUE is in this case defined as "defualt text to display in
edit box". If left out, it displays a null string, e.g. an empty
field.

On your specific problem I have no suggestions though....
 
-----Original Message-----
From: Jas
To: php-windows@lists.php.net
Sent: 29/09/2003 18:08
Subject: Re:  form vars missing...

You know I have tried that as well... ex.
<input type="text" name="fname" value="fname">

And I have tried adding a hidden form element as well... ex.
<input type="text" name="fname" value="fname">
<input type="hidden" name="fname" value="fname">

All to no avail, I am thinking IIS is my problem but I am going to try
it in
a *nix environment just to be certain.
jas

"Gerardo Rojas" <grojas@strategicinc.com> wrote in message
F0EDCD6B96C14741A2F6B0BE6EB7D9CF4A5CA0@scsprdm.strategicinc.com">news:F0EDCD6B96C14741A2F6B0BE6EB7D9CF4A5CA0@scsprdm.strategicinc.com...
I believe you need to add the value="your value goes here" in the form.



-----Original Message-----
From: Jas [mailto:jlgerfen@hotmail.com]
Sent: Monday, September 29, 2003 10:59 AM
To: php-windows@lists.php.net
Subject:  form vars missing...


Here is my problem:

Using both the Get and Post methods my variables are missing on the
resulting page.  Example of code is listed below:

<form method="post" url="result.php" name="form">
<input type="text" name="name"><br>
<input type="text" name="url"><br>
<input type="submit" value="send">

<?php
if ((!$name) || (!url)) {
    do nothing;
} elseif (($name) || ($url)) {
    do rest of code;
} else {
    broken; }

Should be simple and every time I have done this in a *nix environment
it
has worked but this time I have installed php on my IIS 5 server and
check
the scripting permissions and everything looks ok, except my variables
are
not being passed or recognized in the resulting script using post.
Using
the Get method my variables are listed in the URL of resulting page but
the
script isn't picking them up.

Anyone else have troubles with this?
Any help is appreciated,
Jas

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

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

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux