Message Magic




Not logged in

Please note that due to new rules imposed by network operators, as of 13th December 2007 messages sent via Message Magic will not be sent with your own number as the 'from address'. Messages will appear to come from 'Msg Magic'.

We are in discussion with the network operators to try and reinstate this feature.

We apologise for any inconvenience this causes you.

WebForm Options

In addition to some required fields, there are a number of optional fields you can use to customise the actions of your WebForms. Here is a full list of fields and their meanings:

Field Name Required? Usage
UNIQUENAME Yes This field must always contain the 'Unique Name' that you gave your form when you set it up. The field must match exactly (no additional spaces etc.)
FIELDS Yes A comma delimited list of field names that are present in the HTML form. Only these fields will be put into your SMS message. Example: "YourName,YourEmail,YourPhone"
PASSWORD Optional If you set up a password on your WebForm, then the HTML form must include the password field. If the field is not present, or if the password does not match, then the form submission will fail.
MAGICFLASH No Set this field to "Y" if you want to receive Flash SMS messages. Flash messages are displayed immediately on the phone and are not usually stored in the phone's memory.
redirect_missingfield No These fields can be supplied as hidden fields in order to redirect the user back to your own web site after a WebForm is submitted. Each field corresponds to a different success or failure reason. If the appropriate field is not given, a standard message will be displayed instead.
redirect_baduser No
redirect_badmessage No
redirect_sendfailure No
redirect_failure No
redirect_success No

 

Here is an example of the HTML source for a simple WebForm:

<form action="http://www.messagemagic.co.uk/formsms.asp" method=post>

<!--tell message magic who you are etc...-->
<input name=UNIQUENAME type=hidden value="MYFORMNAME">
<input name=MAGICFLASH type=hidden value="N">

<!--tell message magic where to go after: put your own links in here...-->
<input name=redirect_failure type=hidden value="http://www.mywebsite.com/sorry_theres_a_problem.htm">
<input name=redirect_success type=hidden value="http://www.mywebsite.com/thanks_ill_be_in_touch.htm">

<!--tell message magic which fields to SMS...-->
<input name=fields type=hidden value="YourName,YourEmail,YourPhone">

<!--now for the matching form fields that the visitor sees...-->
<p>Your Name? <input name="YourName" size=15>
<p>Your Email? <input name="YourEmail" size=15>
<p>Your Phone Number? <input name="YourPhone" size=15>

<!--you only need this one if you gave your form a password...-->
<p>Form Password? <input name="Password" size=15>

<!--and finally the submit button...-->
<input type=submit value="Send Message">

</form>

You can create a more sophisticated solution by making the form post into a pop-up window:

<form action="http://www.messagemagic.co.uk/formsms.asp" method=post target="smsresult">

<!--tell message magic who you are etc...-->
<input name=UNIQUENAME type=hidden value="MYFORMNAME">

<!--tell message magic which fields to SMS...-->
<input name=fields type=hidden value="YourName,YourEmail,YourPhone">

<!--now for the matching form fields that the visitor sees...-->
<p>Your Name? <input name="YourName" size=15>
<p>Your Email? <input name="YourEmail" size=15>
<p>Your Phone Number? <input name="YourPhone" size=15>

<!--and finally the submit button...-->
<input type=submit value="Send Message"
onsubmit="javascript:window.open('about:blank','smsresult', 'height=100,width=300,location=no,menubar=no,resizable=yes,status=no, toolbar=no');">

</form>