form submit not showing up in url for db query, bit is with static list.

I have two examples:
Example 1 is a static list that populates a drop down and when hitting submit does show the name in the url
Example 2 is a list populated by a database query and when hitting submit does not show the name in the url

Both are identical but for the Example 2 using a db query instead of a static list.
Both populate the drop down fine

Question:

Why would Example 2 not be putting the name in the url bar?

Example 1:

Volvo Saab Mercedes Audi

Example 2:

<?php $db = pg_connect("host=localhost port=5432 dbname=ClickFox_Simulation user=pgtest password=pigfat"); $result = pg_query($db, "select one from todelete"); //for each row we get from pg, echo a form input while ($row = pg_fetch_array($result)) { //echo "<option value=\"$row[node]\"\n"; echo "$row[one]\n"; } ?>

SOLVED

on example 2 I had

echo “<option value=”$row[two]">$row[one]\n";

but I needed

echo “<option value=”$row[one]">$row[one]\n";

so both instances of $row needed to have ‘one’ in them.

Sponsor our Newsletter | Privacy Policy | Terms of Service