Re: Getting rid of bugs I never thought I would have. Nasty bugs are gone!

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

 



At 08:43 PM 28/06/2010, you wrote:
> At 04:14 PM 28/06/2010, you wrote:
> >On 06/24/2010 09:16 PM, Bill Mudry wrote:

> ><snip>
> >
> >1) Fix 2 and I think 1 will be more easily traced.
> >2) I did not see that you were keeping the species_name once the
> >user clicks on "Choose data to view." You could add a hidden input
> >field that saves the value and returns it to the script. Something like:
> >echo "<input type='hidden' name='species_name' value='{$species_name}' />";
> >Once the user clicks the button to select the data they want to
> >view, PHP has no idea what species they were viewing.

A great help, James, that idea worked! A great lesson for me to learn in coding.
I had probably forgot how using hidden form tags can be so useful to preserve
variables that way. The scans no longer disappear, yahoo!
<cut>

> http://www.prowebcanada.com/taxa/displayspecies.php?show_woodworking=OFF&show_numeric=OFF
> and that is even after I have chosen both user check boxes on and
> clicked on the submit button. Both should read on but both show OFF.

When I visited the site, there was an error in the generated HTML, so I
suspect your actual script in use is not identical to the one you
included in your mail.
The error was in the img tag generated for a specific wood. NULL as filename,
no quotes around url, and an extra '>' on the end.

Thank you so much for your astute and careful effort in going over the code. You were right :-) . No kodos for me for forgetting to even examine the generated code. However, I found the errors you mentioned (including an open div tag) and corrected it. I then noticed I had temporarily commented the two needed $_get statement and un-commented them. That did it. The two informational show or not all in what the reader chooses to show -- just like they are supposed to!

Both of you are a huge help. It is so rewarding to see the species data report area working so well now. It is also, by the way, likely to be the most used function over time out of all pages. Seeing all this come together has been only in the form of a wish and dream for years until the past year or so.

Go try it out :-). (www.prowebcanada.com/taxa)

Much thanks,

Bill Mudry









> >Thanks,
> >James
>
> Here's hoping that you or someone can catch what I have not quite
> coded correctly.
>
> Bill
>
>
>
>
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >

--
Niel Archer



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