Forum Moderators: coopster

Message Too Old, No Replies

Php script for sms service

         

widzga

6:48 pm on Sep 28, 2010 (gmt 0)

10+ Year Member



Hello.
I don't know how to make script for my webpage. I need script for my button. THIS IS MY IDEA, ANY OTHER IDEA IS TOO GOOD , ANYWAY YOU CAN POST YOUR IDEA

I USING [FORTUMO.COM...] SMS PAYMENT SERVISE. SO I NEED THIS SCRIPT WORK FOR THIS SMS PAYMENT SYSTEM!

I have button who send information to database. So i need this button make for pay. I need text area near this button. where user put password who he can get from mobile. He send code like " coins to 155 " and get password. when password are right button send information to database , and appears text "password accepted ", and when he put wrong code button dont work ( dont send information to database " and appears text " wrong code , please try again "

here is my botton code.
<td><input type="submit" class="style1" value="Do It!" /></td>


and here you can get full my script.
1. [mediafire.com...]


Its need look like this image:
[img441.imageshack.us...]


Please help me , and sorry for my english!

Demaestro

7:52 pm on Sep 28, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do you have a SMS aggregator or a GSM modem with a SIM card attached to the server?

widzga

9:49 pm on Sep 28, 2010 (gmt 0)

10+ Year Member



Here is [Fortumo.com...] sms payment servise. and i don't know how to make this work to my webpage.

and here is some code who they give [fortumo.com...]

Demaestro

10:14 pm on Sep 28, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It seems pretty straight forward. Do you have any experience with PHP? If not you are going to have to learn some.

Basically you want to have a form that submits to a php file on your website. That PHP file does the job of sending of the request and getting the response from Fortumo.

Form should look something like this:

<form action="sms_logic.php" method="post">
<input type="text" name="" value="" />
<input type="submit" class="style1" value="Do It!" />
</form>

Then make a php page and use script they gave you.

If you have no PHP xp you are going to struggle through this but you can do it and you will learn a lot.

widzga

10:41 am on Sep 29, 2010 (gmt 0)

10+ Year Member



I put the code who you gived me , but anyway i can just click on button "do it" and information send to database whitout using password. i can leave blank password.

Demaestro

7:55 pm on Sep 29, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You should see if Fortumo will offer you any support since you are a customer.

I suspect you will have to read through the documentation to get it acting the way you want.

Hopefully customer support can point you in the right direction.

You can post another thread asking if anyone has any Fortumo site integration experience.