php + mysql for web sms

Reply

Join Date: Mar 2007
Posts: 20
Reputation: MKIII is an unknown quantity at this point 
Solved Threads: 0
MKIII MKIII is offline Offline
Newbie Poster

php + mysql for web sms

 
0
  #1
Mar 29th, 2007
Hello all,

I am new to php and thus far i'm love the potential this language has as I learn more about it.


I have been trying to write a script to no avail.


What I am trying to accomplish is to setup a sms site from web to mobile. I have looked at allot of other applications but I don't think that those are what i'm looking for. I believe a script would accomplish my goal.


Here's my goal, Webapge layout something like this:



Mobile number Select Provider(drop down box)

Subject (optional)

Message Delivery time (select when to send message)

Captcha (to help avoid bots/spam)


Send



Can anyone assist with this? Please speak in laymans terms as much as possible when responding. Thanks. :lol:
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,087
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: php + mysql for web sms

 
0
  #2
Mar 31st, 2007
Hi,

Which are you having the problem with? The creation of the form and PHP code to process the form? Or the PHP for sending SMS?

Do you already have some php written that you could post?
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 5
Reputation: qaisu is an unknown quantity at this point 
Solved Threads: 1
qaisu qaisu is offline Offline
Newbie Poster

Re: php + mysql for web sms

 
0
  #3
Apr 7th, 2007
Hello!

The php for sending sms messages is simple, but for this to work you will need support of an sms gateway or an smsC. Better get that support before sending messages, try to do a contract with a cell phone company or web2sms sender, they will give you a template of the string in which you can include cell phone number, message ,delivery time and other variables and send the message

Hope it helps,

QaiS
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 20
Reputation: MKIII is an unknown quantity at this point 
Solved Threads: 0
MKIII MKIII is offline Offline
Newbie Poster

Re: php + mysql for web sms

 
0
  #4
Feb 20th, 2008
I'm still struggling with both the form and the php code.

I started a few times with a basic form with the following fields: subject, name, cell number & text box. Where i'm really stuck at is, in the 'cell number' text box I would like for that to go to the provider's gateway....but I don't know how to set it up so that once someone inputs the receipient cell number it goes out like this: 1234567890@provider.com etc.


Suggestions please.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 20
Reputation: MKIII is an unknown quantity at this point 
Solved Threads: 0
MKIII MKIII is offline Offline
Newbie Poster

Re: php + mysql for web sms

 
0
  #5
Feb 22nd, 2008
Anyone??
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,087
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: php + mysql for web sms

 
0
  #6
Mar 1st, 2008
Originally Posted by MKIII View Post
I'm still struggling with both the form and the php code.

I started a few times with a basic form with the following fields: subject, name, cell number & text box. Where i'm really stuck at is, in the 'cell number' text box I would like for that to go to the provider's gateway....but I don't know how to set it up so that once someone inputs the receipient cell number it goes out like this: 1234567890@provider.com etc.


Suggestions please.
You'll need a good tutorial on HTML forms and PHP form processing.

You'll also need to look up string concatenation in PHP.


I assume you're trying to send TXT messages by using the Email to SMS gateways provided freely by the cell providers.
In order to do this, you'll need the email domain for each cell providers. Do you already have this list?

Once you have this list, you just display the list to the users in a <select> box.

eg:

  1. <select name="provider">
  2. <option value="tmobile.com">T-Mobile</option>
  3. ...
  4. </select>

You'll also need the phone number of course.

When the form is submitted, you receive the form submission as a HTTP POST, or GET depending on the form method.

So the provider would be in:
  1. $_POST['provider'];

for a post method.

You take the phone number and concatenate it with the provider and send it via email using the:

mail() function.

http://php.net/mail/
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 20
Reputation: MKIII is an unknown quantity at this point 
Solved Threads: 0
MKIII MKIII is offline Offline
Newbie Poster

Re: php + mysql for web sms

 
0
  #7
Mar 5th, 2008
Hello there...

I do have the email domain for the cell providers set to go... I would prefer to not use a 'select box' though.

Yes, i'm reading and trying to understand the PHP processing and I thought I neede to use arrays, however you're mentoning string concentration now?? Hmmm..
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,087
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: php + mysql for web sms

 
0
  #8
Mar 12th, 2008
I guess what you have is a single sms to email gateway. So all you need is to put the number and the domain for that sms gateway together?

All you need then is to concatenate the phone number provided by the user via the form, to the SMS gateway domain.

eg:

  1. <?php
  2.  
  3. $number = $_GET['number'];
  4.  
  5. $email = $number.'@provider.com';
  6.  
  7. mail($email, ... etc... );
  8.  
  9. ?>
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 253
Reputation: Designer_101 is an unknown quantity at this point 
Solved Threads: 12
Designer_101's Avatar
Designer_101 Designer_101 is offline Offline
Posting Whiz in Training

Re: php + mysql for web sms

 
0
  #9
Mar 12th, 2008
hi
from looking at your previous conversation history
i really think you should gather a wider understanding of php to start doing what you want to do. I learnt through lynda.com but that costs now. I would recommend
http://www.w3schools.com/php/default.asp
as a guide through your learning.

Hope this helps
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 1
Reputation: modnart is an unknown quantity at this point 
Solved Threads: 0
modnart modnart is offline Offline
Newbie Poster

Re: php + mysql for web sms

 
0
  #10
Apr 24th, 2009
Hi,

I am trying to do something similar.

The difference is that I would like a registered user to click a button on the web page to have a preprogrammed text message sent via email to their cell phone.

I would need the PHP code to concatenate the users cell phone number from the database with their registered providers domain @providersdomain.com (see: http://en.wikipedia.org/wiki/List_of...or_Web_to_SMS), perhaps from an array of domains in the code.

I am looking for a PHP developer to work with on this, I appreciate any recommendations or referrals.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum


Views: 4077 | Replies: 10
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC