I'm developing a web app specifically for mobile phones, and I've run into a doozy of a problem. On the Blackberry emulator I've installed, everything works fine. But when I run my Openwave or Nokia N60 emulators, I can't log into my app any more. When I check the logs, I find that the reason is that ALL of the $_POST variables are empty.
I've run through just about everything I can think of that would be the problem, and I'm still stuck. I've tried all three of the DOCTYPEs that Wikipedia lists, on the off chance that that's it, I've tried sending all kinds of different headers, and I'm just stumped.
My last idea is that perhaps my form code itself is wrong? I enclose a table in my form, and all the examples I've seen enclose a paragraph with the form.
I.e. In the examples I see:
<form>
<p>
... stuff ...
</p>
</form>
And I have:
<form action="/" method="POST" class="formic">
<table class="mobile-form">
<tr>
<td colspan="2" class="label required">Email address</td>
</tr>
<tr>
<td colspan="2" class="data"><input type="text" name="email" class="text" /></td>
</tr>
<tr>
<td colspan="2" class="label required">Password</td>
</tr>
<tr>
<td><img src="/images/exclamation.png" class="error_icon" value="/images/exclamation.png" /></td>
<td class="data"><input type="password" name="password" class="text" /></td>
</tr>
<tr>
<td colspan="2" class="data field-error">You must enter a password.</td>
</tr>
<tr>
<td colspan="2" class="label required">Sign in to:</td>
</tr>
<tr>
<td colspan="2" class="data">
<select name="aspect">
<option value="web">Web interface</option>
<option selected="selected" value="mobile">Mobile interface</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="saved_aspect" value="0" />
<label>
<input type="checkbox" name="saved_aspect" checked="checked" value="1" />
Save interface choice on this computer.
</label>
</td>
</tr>
<tr>
<td colspan="2" class="submit"><input type="submit" name="" class="submit" value="Log in" /></td>
</tr>
</table>
</form>
Could that be it? Where would I find the documentation/specifications that would demonstrate this?