Hi!
We are seeeing many users with XP experiencing empty form data issue.
Browwer = Explorer 7.0, OS = Windows Vista
Browser = Firefox 2.0.0, OS = Windows XP
Browser = Explorer 6.0, OS = Windows XP
Browser = Firefox 1.0.7, OS = Windows XP
Broswer = Opera 9.25, OS = Windows XP
The form is submitted using POST. For testing we are using XP/Explorer 6.0 client and we don't see issue at all. It is only some users who are experiencing this issue.
Any help would be appreciated. URL
http://www.ireachable.com/vote
11 3413
Hi,
could you please post some code that produces the output?
Cheers
Hi!
We are seeeing many users with XP experiencing empty form data issue.
Browwer = Explorer 7.0, OS = Windows Vista
Browser = Firefox 2.0.0, OS = Windows XP
Browser = Explorer 6.0, OS = Windows XP
Browser = Firefox 1.0.7, OS = Windows XP
Broswer = Opera 9.25, OS = Windows XP
The form is submitted using POST. For testing we are using XP/Explorer 6.0 client and we don't see issue at all. It is only some users who are experiencing this issue.
Any help would be appreciated. URL
http://www.ireachable.com/vote
Hi!
We are seeeing many users with XP experiencing empty form data issue.
Browwer = Explorer 7.0, OS = Windows Vista
Browser = Firefox 2.0.0, OS = Windows XP
Browser = Explorer 6.0, OS = Windows XP
Browser = Firefox 1.0.7, OS = Windows XP
Broswer = Opera 9.25, OS = Windows XP
The form is submitted using POST. For testing we are using XP/Explorer 6.0 client and we don't see issue at all. It is only some users who are experiencing this issue.
Any help would be appreciated. URL http://www.ireachable.com/vote
I have a similar issue...when using IE 6 variable is displayed but it sends a "" when using Firefox. Both under Windows 2000/XP
Any solutions to this problem would be highly appreciated.
Thanks
AJ
Hi,
could you please post some code that produces the output?
Cheers
- <?php
-
-
if ($_POST['methodUI'] == "1") {
-
$link = mysql_connect('DB details);
-
if (!$link) {
-
die('Could not connect: ' . mysql_error());
-
}
-
mysql_select_db('app_pw_container');
-
$query="SELECT pkey_app_name FROM main_up";
-
$result=mysql_query($query);
-
-
echo '<form method="post" action="update.php" name="form2">';
-
echo "<table>";
-
echo '<tr><td>App Name:';
-
echo '<select name="appName"><option>Select Application Name</option>';
-
-
while($row=mysql_fetch_array($result)) {
-
echo '<option value>';
-
echo $row["pkey_app_name"];
-
echo "</option>";
-
}
-
echo '</select></td></tr>';
-
echo '<tr><td><label>Username: <input type="text" name="username" maxlength="40"></label></td></tr>';
-
echo '<tr><td><label>Password: <input type="password" name="pass" maxlength="40"></label></td></tr>';
-
echo '<tr><td><input type="submit" name="update" value="Submit"></td></tr>';
-
echo "</table>";
-
echo "</form>";
-
-
}
-
-
-
elseif ($_POST['methodUI'] == "2") {
-
echo '<form method="post" action="update.php" name="form2">';
-
echo "<table>";
-
echo '<tr><td><label>App Name: <input type="text" name="appName" maxlength="40"></label></td></tr>';
-
echo '<tr><td><label>Username: <input type="text" name="username" maxlength="40"></label></td></tr>';
-
echo '<tr><td><label>Password: <input type="password" name="pass" maxlength="40"></label></td></tr>';
-
echo '<tr><td><input type="submit" name="submit" value="Submit"></td></tr>';
-
echo "</table>";
-
echo "<br>";
-
echo "</form>";
-
-
}
-
-
?>
-
I have put in the text. Basically, I am trying to populate the combobox with values from database. The other two normal text fields pass the variable value to the next page but only the combobox value isn't passed and this happens only in Firefox.
Thanks
AJ
There is no field with the name 'methodUI' in your form. So what is it you are testing in the $_POST array? If the code shown is not all of it, show it.
Btw: statement - $link = mysql_connect('DB details);
needas a closing single quote in the connect.
Ronald
There is no field with the name 'methodUI' in your form. So what is it you are testing in the $_POST array? If the code shown is not all of it, show it.
Btw: statement - $link = mysql_connect('DB details);
needas a closing single quote in the connect.
Ronald
Thanks for the response ronverdonk
DB details are correct.
This form is displayed on the basis of a value (methodUI) from a previous form which either sends a "1" or a "2". It is basically a dropdown list where user selects on of the two choices. Based on that, on the next page, respective form is showed.
This is working fine in IE but not in FF. - <form method="post" action="inputform.php" name="forminput">
-
<table>
-
<tr>
-
<td>Select Method: </td>
-
-
<td>
-
<select name="methodUI">
-
<option value="1">Update Current Application Details</option>
-
<option value="2">Insert New Application Details</option>
-
</select>
-
</td>
-
</tr>
-
-
<tr>
-
<td>
-
<input type="submit" name"submitip" value="Submit">
-
</td>
-
</tr>
-
</table>
-
</form>
-
Much appreciate your help.
Best,
AJ
Thius application runs fine in both IE and FF, except for a minor error in statement - <input type="submit" name"submitip" value="Submit">
-
where you forgot the '=' .
I'll show you what I did: took your code and changed the action to b.php.
So here is your code[php]<form method="post" action="b.php" name="forminput">
<table>
<tr>
<td>Select Method: </td>
<td>
<select name="methodUI">
<option value="1">Update Current Application Details</option>
<option value="2">Insert New Application Details</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="submit" name="submitip" value="Submit">
</td>
</tr>
</table>
</form>[/php]
and here is the code for b.php:[php]<?php
echo '<pre>'; print_r($_POST);
?>[/php]
Running the program in IE and FF, selection the 2nd option and submitting results in b.php being executed and the results are: - Array
-
(
-
[methodUI] => 2
-
[submitip] => Submit
-
)
Ronald
Thius application runs fine in both IE and FF, except for a minor error in statement - <input type="submit" name"submitip" value="Submit">
-
where you forgot the '=' .
I'll show you what I did: took your code and changed the action to b.php.
So here is your code[php]<form method="post" action="b.php" name="forminput">
<table>
<tr>
<td>Select Method: </td>
<td>
<select name="methodUI">
<option value="1">Update Current Application Details</option>
<option value="2">Insert New Application Details</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="submit" name="submitip" value="Submit">
</td>
</tr>
</table>
</form>[/php]
and here is the code for b.php:[php]<?php
echo '<pre>'; print_r($_POST);
?>[/php]
Running the program in IE and FF, selection the 2nd option and submitting results in b.php being executed and the results are: - Array
-
(
-
[methodUI] => 2
-
[submitip] => Submit
-
)
Ronald
Ronald, wow. you take a lot of effort. I am really amazed. :)
I can very well get the output of methodUI to the next page where using methodUI value I will create a form depending on the value of methodUI. I can very well get to the part where methodUI is being passed successfully and the appropriate form is being generated on the next level. But for
I have a dropdown list from database. If you see the code below, there is a dropdown list in the if section where methodUI=="1". the second section works fine but in the first section when i select the dropdown value and hit Submit, it does not output the value from the dropdown list. So, this is not about methodUI 's value being passed or not, it is being passed. Problem is with the <select> I think. - <?php
-
-
if ($_POST['methodUI'] == "1") {
-
echo '<form method="post" action="update.php" name="form2">';
-
-
$link = mysql_connect('DB Details');
-
if (!$link) {
-
die('Could not connect: ' . mysql_error());
-
}
-
mysql_select_db('app_pw_container');
-
$query="SELECT pkey_app_name FROM main_up";
-
$result=mysql_query($query);
-
-
echo "<table>";
-
echo '<tr><td>App Name:';
-
echo '<select name="appName" id="appNameID"><option>Select Application Name</option>';
-
-
while($row=mysql_fetch_array($result)) {
-
echo '<option value>';
-
echo $row["pkey_app_name"];
-
echo "</option>";
-
}
-
echo '</select></td></tr>';
-
echo '<tr><td><label>Username: <input type="text" name="username" maxlength="40"></label></td></tr>';
-
echo '<tr><td><label>Password: <input type="password" name="pass" maxlength="40"></label></td></tr>';
-
echo '<tr><td><input type="submit" name="update" value="Submit"></td></tr>';
-
echo "</table>";
-
echo "</form>";
-
-
}
-
-
-
elseif ($_POST['methodUI'] == "2") {
-
echo '<form method="post" action="update.php" name="form2">';
-
echo "<table>";
-
echo '<tr><td><label>App Name: <input type="text" name="appName" maxlength="40"></label></td></tr>';
-
echo '<tr><td><label>Username: <input type="text" name="username" maxlength="40"></label></td></tr>';
-
echo '<tr><td><label>Password: <input type="password" name="pass" maxlength="40"></label></td></tr>';
-
echo '<tr><td><input type="submit" name="submit" value="Submit"></td></tr>';
-
echo "</table>";
-
echo "<br>";
-
echo "</form>";
-
-
}
-
-
?>
Also pasting the last update.php -
<?php
-
-
$appname = $_POST['appName'];
-
$uname = $_POST['username'];
-
$passw = $_POST['pass'];
-
-
echo var_dump($appname);
-
echo var_dump($uname);
-
echo var_dump($passw);
-
?>
-
I don't know if I am clear yet or not. Feel free to curse or shout if I am not. :)
Best,
AJ
Thius application runs fine in both IE and FF, except for a minor error in statement - <input type="submit" name"submitip" value="Submit">
-
where you forgot the '=' .
I'll show you what I did: took your code and changed the action to b.php.
So here is your code[php]<form method="post" action="b.php" name="forminput">
<table>
<tr>
<td>Select Method: </td>
<td>
<select name="methodUI">
<option value="1">Update Current Application Details</option>
<option value="2">Insert New Application Details</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="submit" name="submitip" value="Submit">
</td>
</tr>
</table>
</form>[/php]
and here is the code for b.php:[php]<?php
echo '<pre>'; print_r($_POST);
?>[/php]
Running the program in IE and FF, selection the 2nd option and submitting results in b.php being executed and the results are: - Array
-
(
-
[methodUI] => 2
-
[submitip] => Submit
-
)
Ronald
I just tried your way on the second form which has appName...
Please note that the appName is not being passed at all in FF. - Array
-
(
-
[appName] =>
-
[username] => fdghdhd
-
[pass] => dgdgh
-
[update] => Submit
-
)
Whereas in IE, the output was - -
Array
-
(
-
[appName] => testing_gendb
-
[username] => fgfdgf
-
[pass] => cvcv
-
[update] => Submit
-
)
Try this one for row 19:
[php]
echo '<option value="'.$row['pkey_app_name'].'">'.$row["pkey_app_name"].'</option>';[/php]
Ronald
Try this one for row 19:
[php]
echo '<option value="'.$row['pkey_app_name'].'">'.$row["pkey_app_name"].'</option>';[/php]
Ronald
Works like a charm. :)
Why was I missing this?
Thanks a lot Ronald.
Best,
AJ
Works like a charm. :)
Why was I missing this?
Thanks a lot Ronald.
Best,
AJ
Being awake (possibly)?
Anyway, great it works. See you again.
Ronald
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Wayno |
last post by:
My php logs are coming up empty. I have done all I can think of, and
all that made sense to me. Can someone take a look at my php.ini
please and tell me what you think may be the problem.
I...
|
by: tornado |
last post by:
Hi all,
I am pretty new to PHP. I was reading PHP manual and trying out the
example from 2nd
chapter (A simple Tutorial). When i try to print the variable as
given in the example it returns...
|
by: Rudolf Horbas |
last post by:
G'day,
has any of You ever experienced the problem that posted forms deliver an
empty $_POST-array?
I have a form like:
<form method="POST" action="https://.../result.html?qid=70">
<input...
|
by: lawrence |
last post by:
I've the form you see below, which is supposed to upload an image. I
expect the image name as a var to be $uploadedFile. In the receiving
function, I've this code:
global $uploadedFile,...
|
by: a c s |
last post by:
Hi there, my problem is as follows:
When emailing a file using PHP 4.0.6, the attachment received is an
empty "attachment.txt" file instead of the actual file I attached.
Any suggestions why...
|
by: Dan |
last post by:
I was trying to troubleshoot a login page that doesn't work - it keeps
saying the login/password is missing - when my tracing discovered this
peculiar behavior.
register_globals is off, so at...
|
by: Thejo |
last post by:
Hi all,
I started programming in PHP recently and have a query about empty
$_POST arrays. I can see two scenarios when this could happen.
1. When some tries to directly load the page to which...
|
by: lorenzdominic_ |
last post by:
Hi
Recently I have been developing a form that uses the _POST variable.
Today the _POST variable was empty everytime I submitted my form
however I changed the post method to be GET and the...
|
by: fishctr |
last post by:
Hi There,
I am building a form that allows a business to enter at most 2 mailing addresses. i have the form set up so both inputs are there, storing as a post array. the problem is, when i try to...
|
by: Dhiru1009 |
last post by:
Hi guys,
I am trying to build a user registration form using PHP and MYSQL but encountring a problem.
When I click on submit with empty fields it adds records to database also it doesn't matter...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |