Nik Coughin wrote:
> wikten wrote:
>> An example link would look like this:
>>
>> http://www.sbc2way.com/web_sendmsg.h...1212&from=From
>> Me&text=This is the text of a test message.
>>
>> Is it possable to us javascript on a webpage with forms to make
>> this work?
>
> You don't need JS, just this HTML:
>
> <form action="http://www.sbc2way.com/web_sendmsg.html" method="post">
> pager: <input type="text" id="pager"><br>
> from: <input type="text" id="from"><br>
> text: <input type="text" id="text"><br>
> <input type="submit" value="Send"> <input type="reset">
> </form>
1. A form element requires a _name_ (attribute value) to be submitted:
<http://www.w3.org/TR/html4/interact/forms.html#h-17.2>
2. To result in the above URL, the method must be GET (the default),
not POST.
3. Since this is tabular data, it is reasonable to use a table (element)
here.
Minimal CSS code:
th {
text-align:left;
}
Minimal HTML code:
<form action="http://www.sbc2way.com/web_sendmsg.html">
<table>
<tr>
<th>Pager:<th>
<td><input name="pager"></td>
</tr>
<tr>
<th>From:</th>
<td><input name="from"></td>
</tr>
<tr>
<th>Text:</th>
<td><input name="text"></td>
</tr>
</table>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
PointedEars
--
Never test the depth of the water with both feet.