+ Reply to Thread
Results 1 to 2 of 2

Thread: X-MXit-Input

  1. #1

    X-MXit-Input

    Hi,

    We are trying to get the key input from the mxit user using this:
    HTML page:
    <form method="post" action="default.aspx">
    Name: <input type="text" name="name"/><br/>
    <input type="submit" value="submit"/>
    </form>

    Above posts to .aspx page:
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    <meta name="mxit" content="no_clearscreen" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <form id="form1" runat="server" method="post" >
    <b>Form Post Results:</b>
    <div>
    <asp:Label ID="Label2" runat="server" Text="Label2"></asp:Label>
    </div>
    </form>
    </body>
    </html>

    Back end code:
    Label2.Text = Request.Headers("X-MXit-Input").ToLower()

    It works when retreiving other info eg: Label1.Text = Request.Headers("X-Device-User-Agent").ToLower()

    Any help please?

  2. #2
    That header is only populated when the user types something into the chat screen and there is not a form on the page. In your back end code you want something like Label2.Text = Request["name"];. Where "name" is the name attribute of the input element that you are trying to get the value of.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts