Click here to Skip to main content
15,913,587 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: Php learner Pin
hamid zamani8-Oct-08 8:34
hamid zamani8-Oct-08 8:34 
GeneralRe: Php learner Pin
Pedram Behroozi8-Oct-08 8:37
Pedram Behroozi8-Oct-08 8:37 
GeneralRe: Php learner Pin
hamid zamani8-Oct-08 8:51
hamid zamani8-Oct-08 8:51 
AnswerRe: Php learner Pin
Perspx19-Oct-08 1:40
Perspx19-Oct-08 1:40 
QuestionMemory released for standard data types and not for user defined data types...? Pin
deepak190523-Sep-08 21:01
deepak190523-Sep-08 21:01 
QuestionCreating a Unix shell Pin
crain198123-Sep-08 6:34
crain198123-Sep-08 6:34 
AnswerRe: Creating a Unix shell Pin
Shyam Bharath19-Oct-08 1:43
Shyam Bharath19-Oct-08 1:43 
QuestionI can't get variables from forms Pin
blackhattrick16-Sep-08 10:18
blackhattrick16-Sep-08 10:18 
For instance, I've got this form:

<html>
<head>
</head>

<body>
<form name="f_prof" id="f_prof" action="chooseOption.php" method="post">
Choose an Option:
<select name="selectedOption" id="selectedOption">
<option value="0">Option 1</option>
<option value="1">Option 2</option>
<option value="2">Option 3</option>
<option value="3">Option 4</option>
</select>
<input type="submit" value="Send" name="ok" id="ok">
</form>
</body>
</html>

And choseOption.php is like this:


<?php


echo ("The option selected was: '$selectedOption'");

?>



The form work fine but when I choose an option and submit it I get this

The option selected was:''

It is supposed that variable $selectedOption is created implicitly but it does not print its value. As you can see, I'm starting in php and web programing, so I'm kind of lost.

Any help would be appreciated and excuse my english.

Regards

Iván Cruz
AnswerRe: I can't get variables from forms Pin
Kristian Sixhøj23-Sep-08 1:00
Kristian Sixhøj23-Sep-08 1:00 
AnswerRe: I can't get variables from forms Pin
Mohammad Dayyan24-Sep-08 16:22
Mohammad Dayyan24-Sep-08 16:22 
AnswerRe: I can't get variables from forms Pin
Ranjit Viswakumar29-Jan-09 13:52
Ranjit Viswakumar29-Jan-09 13:52 
QuestionWhat's python's claim to fame? Pin
MikeMarq14-Sep-08 18:42
MikeMarq14-Sep-08 18:42 
AnswerRe: What's python's claim to fame? Pin
Paul Coldrey7-Oct-08 15:14
professionalPaul Coldrey7-Oct-08 15:14 
GeneralRe: What's python's claim to fame? Pin
MikeMarq20-Oct-08 3:07
MikeMarq20-Oct-08 3:07 
GeneralRe: What's python's claim to fame? Pin
Paul Coldrey20-Oct-08 13:06
professionalPaul Coldrey20-Oct-08 13:06 
GeneralRe: What's python's claim to fame? Pin
MikeBeard27-Jan-09 5:36
MikeBeard27-Jan-09 5:36 
AnswerRe: What's python's claim to fame? Pin
MikeBeard27-Jan-09 5:45
MikeBeard27-Jan-09 5:45 
GeneralRe: What's python's claim to fame? Pin
Anonymous3-Apr-09 12:04
Anonymous3-Apr-09 12:04 
GeneralRe: What's python's claim to fame? Pin
Anonymous24-Apr-09 17:17
Anonymous24-Apr-09 17:17 
Questionkernel programing in linux Pin
gulavaniashish11-Sep-08 23:44
gulavaniashish11-Sep-08 23:44 
QuestionDot Net Framework for Linux Platform Pin
Lakul5-Sep-08 23:07
Lakul5-Sep-08 23:07 
AnswerRe: Dot Net Framework for Linux Platform Pin
avdesh1225-Sep-08 10:29
avdesh1225-Sep-08 10:29 
AnswerRe: Dot Net Framework for Linux Platform Pin
DevMentor.org24-Oct-08 18:00
DevMentor.org24-Oct-08 18:00 
QuestionPopulation of the BPB in MBR Pin
Franz Klein5-Sep-08 8:51
Franz Klein5-Sep-08 8:51 
Questionperl loop issue Pin
rdx128-Aug-08 23:16
rdx128-Aug-08 23:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.