Activity Stream
48,167 MEMBERS
61157 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member
    Website's:
    raghvendra.me

    Question 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 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 advance
    ragavbpl1 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

  2.   Sponsored Links

  3.     
    #2
    Member
    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($chCURLOPT_POST1);
    curl_setopt($chCURLOPT_POSTFIELDS$curl_post_array);
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
    echo 
    curl_exec($ch); 
    Trusted buyers: warezfreak09, sysrocker, aishamontreal

  4.     
    #3
    Banned
    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>
    The Data Form (data.php)
    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" /> 

  5.     
    #4
    Respected Developer
    Website's:
    wrzc.org
    Quote Originally Posted by delboy View Post
    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>
    The Data Form (data.php)
    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" /> 
    Won't work as once it's included you'll still be able to see the info. Same way when you include a header into a index you can see the header info etc.

    bennelsworth idea above will work.
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  6.     
    #5
    Member
    Website's:
    blurayrls.com
    Quote Originally Posted by ragavbpl1 View Post
    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 advance
    whoaaa nice..

  7.     
    #6
    Member
    Website's:
    raghvendra.me
    Quote Originally Posted by bennelsworth View Post
    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($chCURLOPT_POST1);
    curl_setopt($chCURLOPT_POSTFIELDS$curl_post_array);
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
    echo 
    curl_exec($ch); 
    Your 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.

    Quote Originally Posted by Mr Happy View Post
    Won't work as once it's included you'll still be able to see the info. Same way when you include a header into a index you can see the header info etc.

    bennelsworth idea above will work.
    Yes I too have the same point.

    Quote Originally Posted by uzonigor View Post
    whoaaa nice..
    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

  8.     
    #7
    Member
    Firstly, check if you have curl...

    PHP Code: 
    <?php
    php_info
    ();
    ?>
    Look for a section called curl, and maybe the line
    cURL support enabled
    If you can't find it then say which OS you're on (vps/dedi), or if you're using shared hosting.
    Trusted buyers: warezfreak09, sysrocker, aishamontreal

  9.     
    #8
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    just 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


  10.     
    #9
    Banned
    Quote Originally Posted by Mr Happy View Post
    Won't work as once it's included you'll still be able to see the info. Same way when you include a header into a index you can see the header info etc.

    bennelsworth idea above will work.
    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.

  11.     
    #10
    Member
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Hiring] Job Needed
    By PA$$!oN in forum Completed Transactions
    Replies: 0
    Last Post: 10th Mar 2011, 11:02 AM
  2. VPS needed
    By lib3rty1 in forum Hosting Discussion
    Replies: 5
    Last Post: 3rd Sep 2010, 06:37 AM
  3. DEDICATED,ACTIVE NEEDED - Moderators/GM's Needed with BENEFITS
    By robert in forum Community Cooperative
    Replies: 0
    Last Post: 18th Jul 2010, 03:36 PM
  4. Help Needed
    By mostiforums in forum vBulletin
    Replies: 7
    Last Post: 16th Aug 2009, 11:23 AM
  5. Staff Needed Posters NEEDED.!! With Benefits!
    By timboy18 in forum Community Cooperative
    Replies: 2
    Last Post: 17th Jul 2009, 06:54 AM

Tags for this Thread

BE SOCIAL