Hello everyone,

I am using servlets to manipulate data from a WML form. I use the follwing
WML code but it only passes the username not the mobile number!

out.println(" <card id=\"Setup\" title=\"Sign up\">  ");
   out.println("<p>Please enter your mobile number and username if you would
like to recieve text message alerts about open days.");
   out.println("Enter your user name: ");
   out.println("<input name=\"username\" type=\"text\"  maxlength=\"20\"/>
");
   out.println("<br/><br/>Enter your mobile number: ");
   out.println("<input name=\"mobilenumber\" type=\"text\"  maxlength=\"11\"
></p>  ");

   out.println("<do type=\"accept\" label=\"Submit\"><go
href=\"http://etc...dundee.ac.uk:8090/servlet/TxtAlertGetParam\";
method=\"get\"> ");
   //out.println("<postfield name=\"username\" value=\"$(username)\"/> ");
      out.println("<postfield name=\"mobilenumber\"
value=\"$(mobilenumber)\" /> ");
   out.println(" </go></do> ");

If i try and use a post method then the micro-browser returns an error,
reporting that the HTTP method GET is not supported by this URL!

What am i doing wrong. The username is accepted by the servlet if i use the
get method but the mobile number is left 'undefined'

A

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to