Need help with HTML form errors

Need help with HTML form errors

am 04.07.2010 10:30:21 von Nagendra Prasad

--001485e0b496aeaf45048a8ba27d
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

I have this php form that I have inserted in the result page.

************************************************************ ************************************













              





************************************************************ ***************

The above code is giving me the following errors:


Notice: Undefined variable: filter in
C:\wamp\www\5_Final\index.php on line 228


Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php on
line 233 > Type
Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php on
line 234 > Name
Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php on
line 235 > Date
Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php on
line 236 > Size



*Please help me with these errors.*

--001485e0b496aeaf45048a8ba27d--

Re: [PHP-DB] Need help with HTML form errors

am 04.07.2010 10:54:22 von Kesavan Rengarajan

Hi,
Those are notices not warnings(meaning they can be ignored sometimes,
search for error_reporting in the PHP manual).

In your example, if you do not wish ignore the notices, then
initialize the different variables to some value.

Sent from my iPhone

On 04/07/2010, at 6:30 PM, nagendra prasad
wrote:

> Hi All,
>
> I have this php form that I have inserted in the result page.
>
> ***
> ***
> ***
> ***
> ***
> ***
> ***
> ***
> ***
> ************************************************************ *********
>
>


>
>
>
>
>
>
>
>
>
> b>&
> nbsp;
>  
>  
>             > td>
>
> td>
>

>
>

>
> ***
> ***
> ************************************************************ *********
>
> The above code is giving me the following errors:
>
>
Notice: Undefined variable: filter in
> C:\wamp\www\5_Final\index.php on line 228

>
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final
> \index.php on
> line 233 > Type
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final
> \index.php on
> line 234 > Name
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final
> \index.php on
> line 235 > Date
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final
> \index.php on
> line 236 > Size
>
>
>
> *Please help me with these errors.*

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

Re: [PHP-DB] Need help with HTML form errors

am 04.07.2010 10:54:22 von Kesavan Rengarajan

Hi,
Those are notices not warnings(meaning they can be ignored sometimes,
search for error_reporting in the PHP manual).

In your example, if you do not wish ignore the notices, then
initialize the different variables to some value.

Sent from my iPhone

On 04/07/2010, at 6:30 PM, nagendra prasad
wrote:

> Hi All,
>
> I have this php form that I have inserted in the result page.
>
> ***
> ***
> ***
> ***
> ***
> ***
> ***
> ***
> ***
> ************************************************************ *********
>
>


>
>
>
>
>
>
>
>
>
> b>&
> nbsp;
>  
>  
>             > td>
>
> td>
>

>
>

>
> ***
> ***
> ************************************************************ *********
>
> The above code is giving me the following errors:
>
>
Notice: Undefined variable: filter in
> C:\wamp\www\5_Final\index.php on line 228

>
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final
> \index.php on
> line 233 > Type
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final
> \index.php on
> line 234 > Name
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final
> \index.php on
> line 235 > Date
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final
> \index.php on
> line 236 > Size
>
>
>
> *Please help me with these errors.*

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

AW: Need help with HTML form errors

am 04.07.2010 11:01:41 von harlequin2

Good morning Nagendra,

Nagendra wrote:
> ...
> The above code is giving me the following errors:

>
Notice: Undefined variable: filter in
> C:\wamp\www\5_Final\index.php on line 228


> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php
on
> line 233 > Type
> ...

The error occurs because you did not initialize the $filter and $filterfield

variables before using them; this does not indicate an error because these
variables will most likely not be set when the form is displayed initially.

You have multiple options to avoid this error:

1) Change the error_reporting setting in your php.ini or set
"error_reporting (E_ALL & ~(E_STRICT|E_NOTICE));" inside your php script.
>> This disables PHP notices but could make debugging a bit more
complicated.

2) Initialize the variables before using them:
[CODE]
// I assume the variables will be passed by the form, that's why they are in
the
// superglobal $_POST array; if the variable has been passed (isset(...),
use it,
// otherwise initialize with false

$filter = isset($_POST["filter"]) ? $_POST["filter"] : false;
$filterfield = isset($_POST["filterfield"]) ? $_POST["filterfield"] : false;
[/CODE]

HTH!

Regards,

Sascha


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

Re: Need help with HTML form errors

am 04.07.2010 11:55:48 von Nagendra Prasad

--00163630f74d54d985048a8cd4ba
Content-Type: text/plain; charset=ISO-8859-1

Hi Everyone,

Sorry, I haven't mentioned in my earlier mail that the variables $filter and
$filterfield are global variables which I already defined.

Best,
Guru.

--00163630f74d54d985048a8cd4ba--

Re: [phpXperts] Need help with HTML form errors

am 04.07.2010 17:09:59 von Nurul Abser

--00032557459edfb9f3048a91378c
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Dear coder,

New version of php give php Notice if the script contain any variable which
has not value. Please debug your script by printing the varible and confirm
that the varible got value.

Thanks

Abser

On Sun, Jul 4, 2010 at 4:30 PM, nagendra prasad w=
rote:

>
>
> Hi All,
>
> I have this php form that I have inserted in the result page.
>
>
> ************************************************************ *************=
***********************
>
>


>
>
>
>
>
>
>
>
>
>
>
>
          &n=
bsp;   
">=

>
>

>
> ************************************************************ *************=
**
>
> The above code is giving me the following errors:
>
>
Notice: Undefined variable: filter in
> C:\wamp\www\5_Final\index.php on line 228

>
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php =
on
> line 233 > Type
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php =
on
> line 234 > Name
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php =
on
> line 235 > Date
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php =
on
> line 236 > Size
>
>
>
> *Please help me with these errors.*
> __._,_.___
> Reply to sender form+errors>| Reply
> to group rors>| Reply
> via web post yYW9jcGFoBF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTc wNTAwNjc2NARtc2=
dJZAMxMzY5OARzZWMDZnRyBHNsawNycGx5BHN0aW1lAzEyNzgyNTI4MzY-?a ct=3Dreply&mess=
ageNum=3D13698>| Start
> a New Topic Y244YjNjBF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcw NTAwNjc2NARzZWM=
DZnRyBHNsawNudHBjBHN0aW1lAzEyNzgyNTI4MzY->
> Messages in this topic 3698;_ylc=3DX3oDMTM3cDJldWR0BF9TAzk3MzU5NzE0BGdycElkAzEzODc3 MTg3BGdycHNwSWQ=
DMTcwNTAwNjc2NARtc2dJZAMxMzY5OARzZWMDZnRyBHNsawN2dHBjBHN0aW1 lAzEyNzgyNTI4Mz=
YEdHBjSWQDMTM2OTg->(
> 1)
> Recent Activity:
>
> - New Members X3oDMTJnbG4yOTNwBF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNw SWQDMTcwNTAwNjc=
2NARzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMjc4MjUyODM2?o=3D6>
> 5
>
> Visit Your Group mYzRidjg5BF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTc wNTAwNjc2NARzZW=
MDdnRsBHNsawN2Z2hwBHN0aW1lAzEyNzgyNTI4MzY->
> Visit phpXperts website at www.phpxperts.net
> [image: Yahoo! Groups] F9TAzk3NDc2NTkwBGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2N ARzZWMDZnRyBHNs=
awNnZnAEc3RpbWUDMTI3ODI1MjgzNw-->
> Switch to: Text-Only nge+Delivery+Format:+Traditional>,
> Daily Digest Digest>=95
> Unsubscribe > =95
> Terms of Use
> .
>
> __,_._,___
>

--00032557459edfb9f3048a91378c--

Re: [phpXperts] Need help with HTML form errors

am 04.07.2010 17:09:59 von Nurul Abser

--00032557459edfb9f3048a91378c
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Dear coder,

New version of php give php Notice if the script contain any variable which
has not value. Please debug your script by printing the varible and confirm
that the varible got value.

Thanks

Abser

On Sun, Jul 4, 2010 at 4:30 PM, nagendra prasad w=
rote:

>
>
> Hi All,
>
> I have this php form that I have inserted in the result page.
>
>
> ************************************************************ *************=
***********************
>
>


>
>
>
>
>
>
>
>
>
>
>
>
          &n=
bsp;   
">=

>
>

>
> ************************************************************ *************=
**
>
> The above code is giving me the following errors:
>
>
Notice: Undefined variable: filter in
> C:\wamp\www\5_Final\index.php on line 228

>
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php =
on
> line 233 > Type
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php =
on
> line 234 > Name
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php =
on
> line 235 > Date
> Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.php =
on
> line 236 > Size
>
>
>
> *Please help me with these errors.*
> __._,_.___
> Reply to sender form+errors>| Reply
> to group rors>| Reply
> via web post yYW9jcGFoBF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTc wNTAwNjc2NARtc2=
dJZAMxMzY5OARzZWMDZnRyBHNsawNycGx5BHN0aW1lAzEyNzgyNTI4MzY-?a ct=3Dreply&mess=
ageNum=3D13698>| Start
> a New Topic Y244YjNjBF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcw NTAwNjc2NARzZWM=
DZnRyBHNsawNudHBjBHN0aW1lAzEyNzgyNTI4MzY->
> Messages in this topic 3698;_ylc=3DX3oDMTM3cDJldWR0BF9TAzk3MzU5NzE0BGdycElkAzEzODc3 MTg3BGdycHNwSWQ=
DMTcwNTAwNjc2NARtc2dJZAMxMzY5OARzZWMDZnRyBHNsawN2dHBjBHN0aW1 lAzEyNzgyNTI4Mz=
YEdHBjSWQDMTM2OTg->(
> 1)
> Recent Activity:
>
> - New Members X3oDMTJnbG4yOTNwBF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNw SWQDMTcwNTAwNjc=
2NARzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMjc4MjUyODM2?o=3D6>
> 5
>
> Visit Your Group mYzRidjg5BF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTc wNTAwNjc2NARzZW=
MDdnRsBHNsawN2Z2hwBHN0aW1lAzEyNzgyNTI4MzY->
> Visit phpXperts website at www.phpxperts.net
> [image: Yahoo! Groups] F9TAzk3NDc2NTkwBGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2N ARzZWMDZnRyBHNs=
awNnZnAEc3RpbWUDMTI3ODI1MjgzNw-->
> Switch to: Text-Only nge+Delivery+Format:+Traditional>,
> Daily Digest Digest>=95
> Unsubscribe > =95
> Terms of Use
> .
>
> __,_._,___
>

--00032557459edfb9f3048a91378c--

Re: [PHP-WIN] Re: [phpXperts] Need help with HTML form errors

am 04.07.2010 18:39:02 von Phansys Corp

--001636b2b88e2a647b048a9275ca
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Try the next verification to see what's the var


var_dump($_POST['filter']);

} ?>

Best regards.


2010/7/4 Nurul Abser

> Dear coder,
>
> New version of php give php Notice if the script contain any variable whi=
ch
> has not value. Please debug your script by printing the varible and confi=
rm
> that the varible got value.
>
> Thanks
>
> Abser
>
> On Sun, Jul 4, 2010 at 4:30 PM, nagendra prasad > >wrote:
>
> >
> >
> > Hi All,
> >
> > I have this php form that I have inserted in the result page.
> >
> >
> >
> ************************************************************ *************=
***********************
> >
> >


> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> >
          &n=
bsp;   
=
">

> >
> >

> >
> >
> ************************************************************ *************=
**
> >
> > The above code is giving me the following errors:
> >
> >
Notice: Undefined variable: filter in
> > C:\wamp\www\5_Final\index.php on line 228

> >
> > Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.ph=
p
> on
> > line 233 > Type
> > Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.ph=
p
> on
> > line 234 > Name
> > Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.ph=
p
> on
> > line 235 > Date
> > Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.ph=
p
> on
> > line 236 > Size
> >
> >
> >
> > *Please help me with these errors.*
> > __._,_.___
> > Reply to sender<
> nagendra802000@gmail.com?subject=3DNeed+help+with+HTML+form+ errors>| Repl=
y
> > to group<
> phpexperts@yahoogroups.com?subject=3DNeed+help+with+HTML+for m+errors>| Re=
ply
> > via web post<
> http://groups.yahoo.com/group/phpexperts/post;_ylc=3DX3oDMTJ yYW9jcGFoBF9T=
Azk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARt c2dJZAMxMzY5OAR=
zZWMDZnRyBHNsawNycGx5BHN0aW1lAzEyNzgyNTI4MzY-?act=3Dreply&me ssageNum=3D1369=
8>|
> Start
> > a New Topic<
> http://groups.yahoo.com/group/phpexperts/post;_ylc=3DX3oDMTJ mY244YjNjBF9T=
Azk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARz ZWMDZnRyBHNsawN=
udHBjBHN0aW1lAzEyNzgyNTI4MzY-
> >
> > Messages in this topic<
> http://groups.yahoo.com/group/phpexperts/message/13698;_ylc= 3DX3oDMTM3cDJ=
ldWR0BF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTA wNjc2NARtc2dJZA=
MxMzY5OARzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzEyNzgyNTI4MzYEdHBjSW QDMTM2OTg-
> >(
> > 1)
> > Recent Activity:
> >
> > - New Members<
> http://groups.yahoo.com/group/phpexperts/members;_ylc=3DX3oD MTJnbG4yOTNwB=
F9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2N ARzZWMDdnRsBHNs=
awN2bWJycwRzdGltZQMxMjc4MjUyODM2?o=3D6
> >
> > 5
> >
> > Visit Your Group<
> http://groups.yahoo.com/group/phpexperts;_ylc=3DX3oDMTJmYzRi djg5BF9TAzk3M=
zU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMDd nRsBHNsawN2Z2hw=
BHN0aW1lAzEyNzgyNTI4MzY-
> >
> > Visit phpXperts website at www.phpxperts.net
> > [image: Yahoo! Groups]<
> http://groups.yahoo.com/;_ylc=3DX3oDMTJlcGZrN2RuBF9TAzk3NDc2 NTkwBGdycElkA=
zEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMDZnRyBHNsawNnZnAEc 3RpbWUDMTI3ODI1=
MjgzNw--
> >
> > Switch to: Text-Only<
> phpexperts-traditional@yahoogroups.com?subject=3DChange+Deli very+Format:+=
Traditional
> >,
> > Daily Digest<
> phpexperts-digest@yahoogroups.com?subject=3DEmail+Delivery:+ Digest>=95
> > Unsubscribe be>
> =95
> > Terms of Use
> > .
> >
> > __,_._,___
> >
>

--001636b2b88e2a647b048a9275ca--

Re: [PHP-WIN] Re: [phpXperts] Need help with HTML form errors

am 04.07.2010 18:39:02 von Phansys Corp

--001636b2b88e2a647b048a9275ca
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Try the next verification to see what's the var


var_dump($_POST['filter']);

} ?>

Best regards.


2010/7/4 Nurul Abser

> Dear coder,
>
> New version of php give php Notice if the script contain any variable whi=
ch
> has not value. Please debug your script by printing the varible and confi=
rm
> that the varible got value.
>
> Thanks
>
> Abser
>
> On Sun, Jul 4, 2010 at 4:30 PM, nagendra prasad > >wrote:
>
> >
> >
> > Hi All,
> >
> > I have this php form that I have inserted in the result page.
> >
> >
> >
> ************************************************************ *************=
***********************
> >
> >


> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> >
          &n=
bsp;   
=
">

> >
> >

> >
> >
> ************************************************************ *************=
**
> >
> > The above code is giving me the following errors:
> >
> >
Notice: Undefined variable: filter in
> > C:\wamp\www\5_Final\index.php on line 228

> >
> > Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.ph=
p
> on
> > line 233 > Type
> > Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.ph=
p
> on
> > line 234 > Name
> > Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.ph=
p
> on
> > line 235 > Date
> > Notice: Undifined Variable: filterfield in c:\wamp\www\5_final\index.ph=
p
> on
> > line 236 > Size
> >
> >
> >
> > *Please help me with these errors.*
> > __._,_.___
> > Reply to sender<
> nagendra802000@gmail.com?subject=3DNeed+help+with+HTML+form+ errors>| Repl=
y
> > to group<
> phpexperts@yahoogroups.com?subject=3DNeed+help+with+HTML+for m+errors>| Re=
ply
> > via web post<
> http://groups.yahoo.com/group/phpexperts/post;_ylc=3DX3oDMTJ yYW9jcGFoBF9T=
Azk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARt c2dJZAMxMzY5OAR=
zZWMDZnRyBHNsawNycGx5BHN0aW1lAzEyNzgyNTI4MzY-?act=3Dreply&me ssageNum=3D1369=
8>|
> Start
> > a New Topic<
> http://groups.yahoo.com/group/phpexperts/post;_ylc=3DX3oDMTJ mY244YjNjBF9T=
Azk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARz ZWMDZnRyBHNsawN=
udHBjBHN0aW1lAzEyNzgyNTI4MzY-
> >
> > Messages in this topic<
> http://groups.yahoo.com/group/phpexperts/message/13698;_ylc= 3DX3oDMTM3cDJ=
ldWR0BF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTA wNjc2NARtc2dJZA=
MxMzY5OARzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzEyNzgyNTI4MzYEdHBjSW QDMTM2OTg-
> >(
> > 1)
> > Recent Activity:
> >
> > - New Members<
> http://groups.yahoo.com/group/phpexperts/members;_ylc=3DX3oD MTJnbG4yOTNwB=
F9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2N ARzZWMDdnRsBHNs=
awN2bWJycwRzdGltZQMxMjc4MjUyODM2?o=3D6
> >
> > 5
> >
> > Visit Your Group<
> http://groups.yahoo.com/group/phpexperts;_ylc=3DX3oDMTJmYzRi djg5BF9TAzk3M=
zU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMDd nRsBHNsawN2Z2hw=
BHN0aW1lAzEyNzgyNTI4MzY-
> >
> > Visit phpXperts website at www.phpxperts.net
> > [image: Yahoo! Groups]<
> http://groups.yahoo.com/;_ylc=3DX3oDMTJlcGZrN2RuBF9TAzk3NDc2 NTkwBGdycElkA=
zEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMDZnRyBHNsawNnZnAEc 3RpbWUDMTI3ODI1=
MjgzNw--
> >
> > Switch to: Text-Only<
> phpexperts-traditional@yahoogroups.com?subject=3DChange+Deli very+Format:+=
Traditional
> >,
> > Daily Digest<
> phpexperts-digest@yahoogroups.com?subject=3DEmail+Delivery:+ Digest>=95
> > Unsubscribe be>
> =95
> > Terms of Use
> > .
> >
> > __,_._,___
> >
>

--001636b2b88e2a647b048a9275ca--

Re: Need help with HTML form errors

am 04.07.2010 21:55:15 von jesus

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/04/2010 03:30 AM, nagendra prasad wrote:
> Hi All,
>
> I have this php form that I have inserted in the result page.
>
> ************************************************************ ************************************
>
>


>
>
>
are you missing ";" on this line after echo statement should be echo $filter; ?>

>>>>


- --
ヘスス アルベルト
"Nobody wants to say how this works. Maybe nobody knows"
"VIDEOADAPTOR SECTION" on xorg.conf manual
へすす あるべると
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMMOcjAAoJECo0S+stWdOC3Z4H/iP1ZdBfgYdo1cm0knlf Du2B
KxTBmKKY1VqO4975ZeL16DoR027CYUzfxLJhyU8x7VcKyTmnGhjSqIxOc/EZ NlOV
SbO7Ugr6PDX5U4VUOf5HxDpZHy6gywQiL1g+rDOP6f2hRbRNH0+n3DoUJb7l 752i
vmTqXiBboS38bYIIsOrSWIYgvu7Gl3036uL4DQ64L4jb4Vf9ykG+5uoazZUD GJ4E
zQ9R3TCOvbYIG8bb+sYN3brs792IwVyfSzn8uhYzWLZkFBwfOySVpiD+k9j4 HFMy
XDf2pkCKJNyPb41LFfR4GbDNQusOO1S+XX91wF5neXc5KAmZRu1fMFp1wcZz Jqk=
=T3VY
-----END PGP SIGNATURE-----


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

AW: Need help with HTML form errors

am 05.07.2010 08:49:24 von harlequin2

Good Morning Nagendra,

Nagendra wrote:
> Sorry, I haven't mentioned in my earlier mail that the variables $filter
and
> $filterfield are global variables which I already defined.

I couldn't see this in your earlier mail but does the error occur inside a
PHP function?
I would assume so and this could be due to not seeing the previously defined
variables
because they are not declared as being in the global scope. Do you have code
like this
in your routine handling the form output?

[CODE]
function form_handling ()
{
global $filter, $filterfield;
// the rest of the HTML form output

              




...
}
[/CODE]

Regards and keep us posted,

Sascha


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

Re: Need help with HTML form errors

am 05.07.2010 09:08:26 von Nagendra Prasad

--0016e64766348fd7c5048a9e9b62
Content-Type: text/plain; charset=ISO-8859-1

So, What if I define the same global variable twice, will this solve the
issue?

--0016e64766348fd7c5048a9e9b62--

AW: Need help with HTML form errors

am 05.07.2010 10:42:32 von harlequin2

Hi Nagendra,

Nagendra wrote:
> So, What if I define the same global variable twice, will this solve the
> issue?

No, this will most likely overwrite the values from the variables defined
outside of the routine.
I'll try to illustrate this a bit.

[CODE]
// WON'T WORK
// variables defined and set outside of the function
$filter = "123";
$filterfield = "ID";

function form_fill ()
{
// both variables will be reinitialized with false and the values from the
outside scope will be discarded
$filter;
$filterfield;
}
[/CODE]

[CODE]
// WILL WORK
// variables defined and set outside of the function
$filter = "123";
$filterfield = "ID";

function form_fill ()
{
// both variables are declared as being defined outside of the function
(global scope)
global $filter, $filterfield;
}
[/CODE]

Did you do it like in the above example 2?

Regards,

Sascha



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

Re: Need help with HTML form errors

am 05.07.2010 22:41:38 von jesus

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/04/2010 02:55 PM, Jesus wrote:
> On 07/04/2010 03:30 AM, nagendra prasad wrote:
>> Hi All,
>
>> I have this php form that I have inserted in the result page.
>
>>
> ************************************************************ ************************************
>
>
>>

           
;   

>>
>>
>
>
> are you missing ";" on this line after echo statement
> should be
>
>>>>>
>
>

Forgiveness was a little confused about this, sometimes I get error by
not giving ";" but this is not the case my apologies
Regards

- --
ヘスス アルベルト
"Nobody wants to say how this works. Maybe nobody knows"
"VIDEOADAPTOR SECTION" on xorg.conf manual
へすす あるべると
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMMkOCAAoJECo0S+stWdOCV38IAK2wQtS6DYUW6sYRJQPy mFVY
7F1w1G+dfJP75+0d4GXPB8k616YaJyIkipOBgOxTkAfS94nooF2F3f3n84Yl nZCs
rcjLSfvK3PMUi4TVYWAu5g3wtJQH0Lp/2DvNr9u136ZyZmx2470ILF/aGTKf 52wK
3Xyvk8173D2fNsSvNzbYCtS5zeZRuASNnd1q9T8oenc7ATrHCoWlJSakAZWv I5u9
tzAmeg1eECajdk/3ev/flX1KVt94zvvmY+iugEbqpoNbIDi1Fu4LfGOc+I6q J3aR
H9M7tDuAXDmZ8yy6cyjmWfaMWVEgv7ekF/5Mj1Jk6GCiFeoO/LWTM+ObfER7 ObA=
=y1uL
-----END PGP SIGNATURE-----


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