[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-db
Subject:    [PHP-DB] Re: [phpXperts] Need help with HTML form errors
From:       Nurul Abser <abser.it () gmail ! com>
Date:       2010-07-04 15:09:59
Message-ID: AANLkTiktiZ74GTpuhv46jCBQWVs84x7QJ2Ufm6f83eSh () mail ! gmail ! com
[Download RAW message or body]


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 <nagendra802000@gmail.com>wrote:

> 
> 
> Hi All,
> 
> I have this php form that I have inserted in the result page.
> 
> 
> ************************************************************************************************
>  <form action="index.php" method="post">
> <table class="bd" border="0" cellspacing="1" cellpadding="4">
> <tr>
> 
> <td><b></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
>  <td><input type="text" name="filter" value="<?php echo $filter ?>"></td>
> <td><input type="submit" name="action" value="Search"></td>
> 
> <td><select name="filter_field" style="width:100px;">
> <option value="">All Fields</option>
> <option value="<?php echo "Type" ?>"<?php if ($filterfield == "type") {
> echo "selected"; } ?>><?php echo htmlspecialchars("Type") ?></option>
> <option value="<?php echo "Name" ?>"<?php if ($filterfield == "name") {
> echo "selected"; } ?>><?php echo htmlspecialchars("Name") ?></option>
> <option value="<?php echo "Date" ?>"<?php if ($filterfield == "date") {
> echo "selected"; } ?>><?php echo htmlspecialchars("Date") ?></option>
> <option value="<?php echo "Size" ?>"<?php if ($filterfield == "size") {
> echo "selected"; } ?>><?php echo htmlspecialchars("Size") ?></option>
> 
> </select></td>
> 
> </tr>
> 
> 
> </table>
> 
> <hr size="1" noshade>
> 
> ***************************************************************************
> 
> The above code is giving me the following errors:
> 
> <br /> <b>Notice</b>:  Undefined variable: filter in
> <b>C:\wamp\www\5_Final\index.php</b> on line <b>228</b><br />
> 
> 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<nagendra802000@gmail.com?subject=Need+help+with+HTML+form+errors>| \
> Reply to group<phpexperts@yahoogroups.com?subject=Need+help+with+HTML+form+errors>| \
> Reply via web post<http://groups.yahoo.com/group/phpexperts/post;_ylc=X3oDMTJyYW9jcG \
> FoBF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARtc2dJZAMxMzY5OARzZWMDZnRyBHNsawNycGx5BHN0aW1lAzEyNzgyNTI4MzY-?act=reply&messageNum=13698>| \
> Start a New Topic<http://groups.yahoo.com/group/phpexperts/post;_ylc=X3oDMTJmY244YjN \
> jBF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMDZnRyBHNsawNudHBjBHN0aW1lAzEyNzgyNTI4MzY->
>  Messages in this topic<http://groups.yahoo.com/group/phpexperts/message/13698;_ylc= \
> X3oDMTM3cDJldWR0BF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARtc2dJZAMxMzY5OARzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzEyNzgyNTI4MzYEdHBjSWQDMTM2OTg->(
>  1)
> Recent Activity:
> 
> - New Members<http://groups.yahoo.com/group/phpexperts/members;_ylc=X3oDMTJnbG4yOTNw \
> BF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMjc4MjUyODM2?o=6>
>  5
> 
> Visit Your Group<http://groups.yahoo.com/group/phpexperts;_ylc=X3oDMTJmYzRidjg5BF9TA \
> zk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEyNzgyNTI4MzY->
>  Visit phpXperts website at www.phpxperts.net
> [image: Yahoo! Groups]<http://groups.yahoo.com/;_ylc=X3oDMTJlcGZrN2RuBF9TAzk3NDc2NTk \
> wBGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTI3ODI1MjgzNw-->
>  Switch to: Text-Only<phpexperts-traditional@yahoogroups.com?subject=Change+Delivery+Format:+Traditional>,
>  Daily Digest<phpexperts-digest@yahoogroups.com?subject=Email+Delivery:+Digest>•
> Unsubscribe <phpexperts-unsubscribe@yahoogroups.com?subject=Unsubscribe> •
> Terms of Use <http://docs.yahoo.com/info/terms/>
> .
> 
> __,_._,___
> 



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic