hi ,

  Your code seems to be ok .In the request page u had used floor that is 
causing the problem lol
   
   I had debugged your code and I got all the values correctly If I removed the 
floor

  <?
//print_r($_GET);
echo $var = floor($_GET[ 'var']);
echo "<br>";
echo $versiontitle = trim($_GET[ 'versiontitle' ]);
echo "<br>";
echo $versionlength = trim($_GET[ 'versionlength' ]);
echo "<br>";
echo $resolution = floor($_GET[ 'resolution' ]);
echo "<br>";
echo $aspectratio = floor($_GET[ 'aspectratio' ]);
echo "<br>";
echo $color = trim($_GET[ 'color']) ;
echo "<br>";
?>

 The print_r($_GET) prints all the variables that u r  getting

thanks and regards,
sunilkumar
 



----- Original Message ----
From: whoisquilty <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, 26 February, 2008 9:34:18 AM
Subject: [php-list] Variable not passed from form

I'm trying to create an input form. The user will input info into this form and 
it will then 
insert into a database.

Here is my form code:

<form id="FormName" action="version_ add2.php" method="get" name="FormName" >
<p>VERSION TITLE*: <input type="text" name="versiontitle" size="59" 
/></p>
<p>VERSION LENGTH: <input type="text" name="versionlength " size="8" /> 
minutes</p>
<p>RESOLUTION: <select name="resolution" size="1">
<option selected="selected" value="1080p" >1080p</option>
<option value="480p" >480p</option>
</select></p>
<p>ASPECT RATIO: <select name="aspectratio" size="1">
<option value="2.76: 1">2.76:1 (MGM Camera 65)</option>
<option value="1.33: 1/4:3">1. 33:1/4:33 (Television) </option>
</select></p>
<p>COLOR: <select name="color" size="1">
<option selected="selected" value="C">Color< /option>
<option value="B">Black &amp; White</option>
<option value="M">Color/ Black &amp; White</option>
</select></p>
<p><input type="hidden" name="var" value="<?

$var = floor($_GET[ 'var']);

print $var;

?>" /></p>
<p><input type="submit" name="Add" value="Add" /></p>

Here is the code from the beginning of the response page that receives the 
variables. 
However, no matter what I do, nothing but the hidden value goes from one page 
to the 
other.

<?
$var = floor($_GET[ 'var']);
$versiontitle = floor($_GET[ 'versiontitle' ]);
$versionlength = floor($_GET[ 'versionlength' ]);
$resolution = floor($_GET[ 'resolution' ]);
$aspectratio = floor($_GET[ 'aspectratio' ]);
$color = floor($_GET[ 'color']) ;
?>

Obviously there is more to this response page. But this is all the farther my 
browser gets.

What am I doing wrong here?

Jeremy


 


      Now you can chat without downloading messenger. Go to 
http://in.messenger.yahoo.com/webmessengerpromo.php

[Non-text portions of this message have been removed]

Reply via email to