Thread: Undefined Index
View Single Post
Old 03-17-2008, 01:20 AM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default Undefined Index

PHP Code:

        
echo ' <form method="post" action="">
  <select name="vote">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
  </select>
  <input type="submit" name="voteSubmit">
 </form>'
;
        
                
$vote $_POST['vote'];
$voteSubmit $_POST['voteSubmit']; 
There is an erro but yet, I don't see the problem. :/

Update: Strange, I had error_reporting, that was the problem. Could someone explain this to me?
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote