Question

I'm playing a little bit with WML with PHP, then I want to know what is the equivalent of this on WML 1.0:

<form action="upload_file.php" method="post">
<label for="file">File:</label><br />
<input type="file" name="file" id="file" /><br />
<input type="submit" name="submit" value="Submit" />
</form>
Was it helpful?

Solution

WML 1.0 is deprecated about 10 years ago, but I will answer this by looking at the spec for wml1.0 from www.wapforum.org/what/technical/wml-30-apr-98.pdf

But do note that the "file" input type isn't supported by all devices, so the chances of this actually working is quite slim.

<WML>
<CARD>
<DO TYPE="ACCEPT">
<GO URL="/upload_file.php" />
</DO>
<FIELDSET TITLE="File">
File: <INPUT TYPE="FILE" KEY="myfile"/>
</FIELDSET>
</CARD>
</WML>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top