Link to home
Start Free TrialLog in
Avatar of Steynsk
SteynskFlag for Netherlands

asked on

Post from Jquery mobile form goes wrong in classic asp action page

Hi Experts,

I'm trying to create a form using the Jquery mobile scripts but when I post the data to my action page (in classic ASP) I'm not getting any result.

Unless I remove  the in line 6 included script from the code.

test.html
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>

<div data-role="page">
  <div data-role="main" class="ui-content">
    <form method="post" action="test_post.asp">
      <div class="ui-field-contain">
        <label for="fname">First name:</label>
        <input type="text" name="fname" id="fname">
        <label for="lname">Last name:</label>
        <input type="text" name="lname" id="lname">
      </div>
      <input type="submit" data-inline="true" value="Submit">
    </form>
  </div>
</div>

</body>
</html>

Open in new window



test_post.asp
<%
for each x in Request.Form 
	Response.Write("<br>" & x & " = " & Request.Form(x)) 
next
%>

Open in new window


Is there a way to deal with this? I can't use PHP scripts.
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Steynsk

ASKER

thank you