LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-15-2005, 02:38 AM   #1
jeanpba
LQ Newbie
 
Registered: Oct 2002
Posts: 9

Rep: Reputation: 0
strange value of variable after a php form


Hello

I wrote a sample html code with a form like this :


<html><body>
<form method="post" action="011verif.php">
Choix : <select name="nom">
<option value="val1">val1</option>
<option value="val2">val2</option>
<option value="val3">val3</option>
<option value="val4">val4</option>
</select>
<input type="submit" value="OK">
</form>
</body></html>

and I wrote 011verif.php like this:
<?php
$name = $_POST['name'];
print("<center>value $name </center>");
?>

on php4.2.2 the output returned is :
value val2name=val2

and on php4.3.10 the output returned is more correct :
value val2

what is the difference between these two outputs ? the php configuration
in php.ini is the same and I don't think that is a bug on php4.2.2

Do you know this problem ?
Thanks for your feedbacks

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
csh: variable input of the form x.y.z not accepted nocturna_gr Programming 1 07-24-2005 04:39 PM
PHP form help Zeppelin_Fan Programming 5 03-24-2005 04:47 PM
javascript variable in a form rksprst Programming 3 01-05-2005 04:34 AM
php/form kev82 Programming 0 02-25-2004 06:21 PM
Creating form with PHP absolut Linux - Newbie 1 01-21-2004 01:11 AM


All times are GMT -5. The time now is 01:19 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration