4
votes
Accepted
Cannot get drop down menu to display for pset7. Why would this be?
The request method is GET by default. When the user visits http://pset7/sell.php, she is requesting the page (i.e., sell.php in this case) using GET. Therefore, the condition
$_SERVER["REQUEST_METHOD]...
2
votes
Creating dropdown menu using information in an SQL database
It looks like you aren't actually putting anything into the HTML to display the value itself. Can you try something like this?
echo "<option value = \"".$row["Symbol"]."\">".$row["Symbol"]. "&...
1
vote
Accepted
pset7 sell: can not make drop down menu work
Just after I posted a question i got it. I should put all data manipulations under else from request.method == "POST".
1
vote
Accepted
Drop down list using database values in PHP - Doesn't work - Final project
This is sketchy: foreach($result as $result): ?> because the var names are the same (and I'm not sure about : in php). Wouldn't the proper syntax here <option value="$result["name"]"> be <...
1
vote
Drop-down Menu for Sell_View.PHP gives empty options
How are you passing the php variable from your controller to your viewing page (sell page)? You are storing the array returned by your mysql query in $symbol, but it looks like you are passing $stocks ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
dropdown × 8pset7 × 5
sell × 4
finance × 1
pset8 × 1
python × 1
final-project × 1
php × 1
javascript × 1
pset9 × 1
final × 1
input × 1
typeahead × 1
sell-form.php × 1