Results 1 to 10 of 10
-
1st Feb 2010, 06:08 PM #1OPMemberWebsite's:
raghvendra.mePHP Help Needed!!
Hello All,
I am building a free sms sending website. And API codes have been provided to me by the sms providing company.
Now the problem is that the form I built to send the Destination Mobile Number and Message also needs to send the username and password of the account to the server to which account the company has alloted sms credits.
The following is the sample code I used in the html file to POST the data to the server:-
Code:
<form action="hxxp://api.mVaayoo.com/mvaayooapi/MessageCompose" method="post">
Number:<inputtype="text" name="receipientno" />
Message:<inputtype="text" name="msgtxt" />
<inputtype="hidden" name="user" value="USERNAMEASSWORD" />
<inputtype="hidden" name="senderID" value="mVaayoo" />
<inputtype="hidden" name="state" value="0" />
<inputtype="submit" />
</form>
Now the problem is when some one will click on view source option, they'll be able to see the username and password.
So is there any method through which I can silently send this crucial details secretly without bringing it to the notice of normal user.
Is there any other way to send this perticular data?
A quick help would really be appreciated...
Thank you all in advanceragavbpl1 Reviewed by ragavbpl1 on . PHP Help Needed!! Hello All, I am building a free sms sending website. And API codes have been provided to me by the sms providing company. Now the problem is that the form I built to send the Destination Mobile Number and Message also needs to send the username and password of the account to the server to which account the company has alloted sms credits. The following is the sample code I used in the html file to POST the data to the server:- Code: <form Rating: 5? Premium Web Development :wub:
? Any Kind of web site :O
? Very cheap price =)
? Web 2.0 designs || PM ME :d
-
1st Feb 2010, 06:20 PM #2Member
Post the form to a php page, then have the php page post to the api using curl.
Example curl script:
PHP Code:// load the post data here
$curl_post_array = array(
"receipientno" => $_POST['receipientno'],
"msgtxt" => $_POST['msgtxt'],
"senderID" => "mVaayoo",
"state" => "0"
);
$ch = curl_init("hxxp://api.mVaayoo.com/mvaayooapi/MessageCompose");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_post_array);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
echo curl_exec($ch);
Trusted buyers: warezfreak09, sysrocker, aishamontreal
-
1st Feb 2010, 06:23 PM #3Banned
Hum, you could use a php include, something like the below may work, not tested it..
Main Form (index.php)
PHP Code:<form action="hxxp://api.mVaayoo.com/mvaayooapi/MessageCompose" method="post">
<?php include('data.php'); ?>
</form>
PHP Code:Number:<inputtype="text" name="receipientno" />
Message:<inputtype="text" name="msgtxt" />
<inputtype="hidden" name="user" value="USERNAME:PASSWORD" />
<inputtype="hidden" name="senderID" value="mVaayoo" />
<inputtype="hidden" name="state" value="0" />
<inputtype="submit" />
-
1st Feb 2010, 06:29 PM #4Respected DeveloperWebsite's:
wrzc.orgTutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
-
1st Feb 2010, 06:43 PM #5
-
1st Feb 2010, 07:11 PM #6OPMemberWebsite's:
raghvendra.meYour idea seems promising, but the problem is I do not know anything about cURL. Can you explain in detail how to use it. Can you just make a full example code including the index page and the corresponding cURL page. And also I can not see any thing as username and password posted in your cURL coding. Please explain me a bit more about all this method.
Yes I too have the same point.
Bro Please do not spam in here.
Thank you all for your replies.? Premium Web Development :wub:
? Any Kind of web site :O
? Very cheap price =)
? Web 2.0 designs || PM ME :d
-
1st Feb 2010, 09:05 PM #7Member
Firstly, check if you have curl...
PHP Code:<?php
php_info();
?>
cURL support enabledTrusted buyers: warezfreak09, sysrocker, aishamontreal
-
1st Feb 2010, 09:40 PM #8MemberWebsite's:
litewarez.net litewarez.com triniwarez.comjust do
PHP Code:<?php
if(function_exists('curl_init')){
//do stuff
}else{
//use other method
}
?>Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
2nd Feb 2010, 02:44 PM #9Banned
Yep as you say it would show the information, it would appear I didn?t think it thought properly before posting lol
a temporary solution may be to encrypt the files, e.g. PHP Obfuscator, ioncube or something, although not being a proper solution.. It would work temporarily, and would keep the information away from newbie?s, obviously someone with enough knowledge and enough effort could decrypt the code.
-
2nd Feb 2010, 06:30 PM #10Member
That wouldnt work either, the html source sent to the client wouldnt be encrypted, and it cant be anyway for the form to work properly.
Trusted buyers: warezfreak09, sysrocker, aishamontreal
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Hiring] Job Needed
By PA$$!oN in forum Completed TransactionsReplies: 0Last Post: 10th Mar 2011, 11:02 AM -
VPS needed
By lib3rty1 in forum Hosting DiscussionReplies: 5Last Post: 3rd Sep 2010, 06:37 AM -
DEDICATED,ACTIVE NEEDED - Moderators/GM's Needed with BENEFITS
By robert in forum Community CooperativeReplies: 0Last Post: 18th Jul 2010, 03:36 PM -
Help Needed
By mostiforums in forum vBulletinReplies: 7Last Post: 16th Aug 2009, 11:23 AM -
Staff Needed Posters NEEDED.!! With Benefits!
By timboy18 in forum Community CooperativeReplies: 2Last Post: 17th Jul 2009, 06:54 AM
themaCreator - create posts from...
Version 3.45 released. Open older version (or...