Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Text Messaging Form Help
Old 09-01-2008, 12:53 PM Text Messaging Form Help
Novice Talker

Posts: 12
Name: Andre Campbell
Trades: 0
Hi,

I bought a text messaging form a while back but I have one problem with it. I got a friend of mine who knew PHP to at a replyto part in the form in which the sender can insert their cell number and it would show their number as the from number on the cell phone.

I am having one problem with that part of the form. Whenever I test it and put a replyto number in it, it shows up on my phone as 5555555555@servername.com. Like it always shows the replyto number but it adds the server name to the replyto part of the message. I was wondering if there was a way to remove the server name from the replyto part of the message.

Also, when I entered an email address like johndoe@domain.com it doesn't add the server name. Hopefully that will help.
__________________
Quality Hosting Solutions->
Please login or register to view this content. Registration is FREE

Showcase your site->
Please login or register to view this content. Registration is FREE

thecubehost is offline
Reply With Quote
View Public Profile Visit thecubehost's homepage!
 
 
Register now for full access!
Old 09-01-2008, 03:58 PM Re: Text Messaging Form Help
KieranC's Avatar
Average Talker

Posts: 20
Trades: 0
Can you post some of the code?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
KieranC is offline
Reply With Quote
View Public Profile
 
Old 09-01-2008, 07:24 PM Re: Text Messaging Form Help
Novice Talker

Posts: 12
Name: Andre Campbell
Trades: 0
Here is the php script.
Quote:
<?php

if ( isset( $_POST['service'] ) ) {
$number = $_POST['number'];
$service = $_POST['service'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$replyto = $_POST['replyto'];
if ( ( $service == "Provider 1" ) OR ( $service == "Provider 2" ) ) {
if ( ( $message == "" ) OR ( $subject == "" ) OR ( $number == "" ) ) {
echo "<strong>No fields may be blank, please retry.</strong>";
} else {




if ( $service == "Provider 1" ) {
mail("$number@provider1.com", $subject, $message, "From: $replyto");
echo "<strong>SMS sent to $number.</strong>"; }
if ( $service == "Provider 2" ) {
mail("$number@provider2.com", $subject, $message, "From: $replyto");
echo "<strong>SMS sent to $number.</strong>"; }
}
}
} else {
echo "<strong>Unrecognized service provider, please retry.</strong>";
}
}

?>
__________________
Quality Hosting Solutions->
Please login or register to view this content. Registration is FREE

Showcase your site->
Please login or register to view this content. Registration is FREE

thecubehost is offline
Reply With Quote
View Public Profile Visit thecubehost's homepage!
 
Reply     « Reply to Text Messaging Form Help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11571 seconds with 12 queries