Sending short messages long distance away
May 3, 2009 3:01 PM   Subscribe

HTML question: As a complete newbie can someone tell me an easy way to send SMS messages using my account with a service provider which allows me to use a specific string to send text messages? more inside

My service provider allows me to send cheap text messages using a string which looks like this []. Is it possible (with absolutely no programming experience) to set up shortcuts or bookmarks which bring up a page with all fields filled with predetermined fields and a blank filed for message. If I simply bookmark it then as soon as the page loads a blank message goes out causing a lot of confusion.

posted by london302 to Computers & Internet (4 answers total) 2 users marked this as a favorite
I'm going to guess here that the page you are attempting to bookmark ( is a password-protected page. it might work if you are able to stay always logged in. elsewise, bookmark the page where you are prompted to login as a faster shortcut?
posted by tamarack at 3:22 PM on May 3, 2009

Yeah it should be easy, my javascript is a little rusty but you can do an HTML page with something like

    function go(form){
       document.location = "https://[long url]/" + form.inputbox.value

<form name="myform" action="" method="GET">Enter something in the box: <BR>
<input type="text" name="inputbox" VALUE=""><P>
<input type="button" name="button" Value="Click" onClick="go(this.form)">

I'm basing the code on what I found here.

Just replace "[long url]" with the base URL you need (in your example: "") and post it somewhere online, then send your friends there.
posted by delmoi at 3:26 PM on May 3, 2009

I'm not sure if I understand correctly what you want to do, wouldn't you have to enter a number, too? But maybe a javascript bookmark(let) might help, something along the lines of

javascript:s=prompt('The Message:','');if(s!=''){smswindow=open('https://.../'+escape(s),'','resizeable=yes');smswindow.focus();}

could be enough. - Tested in firefox, you can add more options like 'width=500,height=400,scrollbars=yes,resizeable=yes'
posted by dnial at 3:33 PM on May 3, 2009

Oh one problem with my solution is that anyone who can view the source of that page can find out your password. A better solution would be to take the form elements in a form and then use PHP to fetch the page, rather then simply redirecting the user.

You ought to learn some PHP, a little programming knowledge never killed anyone.
posted by delmoi at 3:49 PM on May 3, 2009 [1 favorite]

« Older What is the best way to sync my contacts (name...   |   Do other animals keep pets? Newer »
This thread is closed to new comments.