| | |
php + mysql for web sms
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2007
Posts: 20
Reputation:
Solved Threads: 0
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:
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:
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?
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!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
•
•
Join Date: Sep 2006
Posts: 5
Reputation:
Solved Threads: 1
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
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
•
•
Join Date: Mar 2007
Posts: 20
Reputation:
Solved Threads: 0
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.
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.
•
•
•
•
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 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:
PHP Syntax (Toggle Plain Text)
<select name="provider"> <option value="tmobile.com">T-Mobile</option> ... </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:
PHP Syntax (Toggle Plain Text)
$_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!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
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:
All you need then is to concatenate the phone number provided by the user via the form, to the SMS gateway domain.
eg:
PHP Syntax (Toggle Plain Text)
<?php $number = $_GET['number']; $email = $number.'@provider.com'; mail($email, ... etc... ); ?>
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!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
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
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
•
•
Join Date: Apr 2009
Posts: 1
Reputation:
Solved Threads: 0
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.
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.
![]() |
Similar Threads
- PHP and MySQL Web Development (PHP)
- SMS Message With PHP/MYSQL (PHP)
- PHP and MySQL (PHP)
- Professional Freelance Web designer India PHP MySQL ASP SQL Server (Community Introductions)
- I am looking for works regarding php/mysql (Web Development Job Offers)
Other Threads in the PHP Forum
- Previous Thread: PDF Image Comparison
- Next Thread: RSS Feeds?
Views: 4077 | Replies: 10
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube






