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>

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.