0

Hello if i cut and paste the link in the form bit, i get a response back to the screen, but if i just run this html, it does not work, why?

<html>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<head>
<title>
SMS Card - SMS Gateway
</title>
</head>
<body>
<form action="http://intext.smscard.com/?a=api_balance&login=cdmsdev&password=cdmsdev" method="post" >
<INPUT TYPE="hidden" name="a" value="new">
<INPUT NAME="user" SIZE=30> Your name<BR>
<INPUT NAME="mobile" SIZE=50> Your Mobile<BR>

<INPUT TYPE="submit" VALUE="Send Message">
<INPUT TYPE="reset" VALUE="Clear">
</FORM>
</BODY>
</HTML>

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by Lafinboy
0

The form action contains a querystring, which is being processed by the script of the target page, and returns a response.

It looks like the form fields have been named wrong. If you change the form as follows, it works:

<form action="http://intext.smscard.com/" method="post" >
<INPUT TYPE="hidden" name="a" value="api_balance">
<INPUT NAME="login" SIZE=30> Your name<BR>
<INPUT NAME="password" SIZE=50> Your Mobile<BR>

<INPUT TYPE="submit" VALUE="Send Message">
<INPUT TYPE="reset" VALUE="Clear">
</FORM>

cdmsdev should be entered as the test values for name and mobile.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.