cell-phone HTML form using post method
Nicolas Cueto
niconiko at gmail.com
Tue Jul 21 06:45:03 EDT 2009
This is perhaps outside the scope of the
list, but I've tried without success other
avenues of information.
I'm aiming to make a form accessible by
Japanese cellphones, which runs as an
irev file on my on-rev web-account, and
which uses a post method.
Not being well-versed in coding HTML forms,
I've been studying and adapting irev examples
that other list members have kindly offered
online (thank you in particular to Sarah for
http://troz.on-rev.com/links.irev ).
Anyway, I've managed to make a form that
works on a web-browser, i.e., the globals
$_SERVER and $_POST exist and contain
data sent by the form.
But, when visiting the very same form with my
cellphone browser, only the global $_SERVER
exits, and $_POST, as far as I can tell, does not.
So, any ideas about what to do?
If it helps, using my cellphone I visited some
pages with forms that worked. Below are HTML
code snippets from three such forms, followed
by two PHP cgi code snippets.
Looking at these, I can see that there are code
differences between my HTML code and theirs.
But I cannot tell if these differences are trivial
or significant. So, I'm experimenting with the
possible variations, but still no luck.
Thank you.
-- Nicolas Cueto
// START OF EXAMPLES //
[HTML ex. 1]
<form action="https://.../confirm" method="post" name="form1"
ENCTYPE="multipart/form-data">
<label for="field_46844">Your question:</label>
<textarea name="field_46844" cols="30" rows="5" id="field_46844"></textarea>
<input name="submit" type="submit" id="submit" value="Check">
[HTML ex. 2]
<form method="post" action="honoo.html" enctype="multipart/form-data">
<input name="victim" size="20" type="text">
<input value="Send" name="submit" type="submit"></form>
[HTML ex. 3]
<form action="index.php" method="post">
<input type="hidden" name="action" value="post">
<textarea style="text-align: center; " name="comment" cols="32"
rows="05" class="form-textbox"></textarea>
<input style="text-align: center; " name="Submit" type="submit"
class="form-button" value="Confirm">
[ PHP ex. 1]
<?php
$name =$_POST[name];
$furi =$_POST[furi];
$add =$_POST[add];
[ PHP ex. 2; accompanies HTML ex. 3]
<?php
return;
function Kakunin(){
global $mei,$kana_mei,$gender,$nenrei,$mail,$tel,$renraku,$comment,$gazou;
$mei = htmlspecialchars($_POST['mei']);
$mei = stripslashes($mei);
$kana_mei = htmlspecialchars($_POST['kana_mei']);
$kana_mei = stripslashes($kana_mei);
// E N D O F E X A M P L E S //
More information about the use-livecode
mailing list