How To Break Down A Link In Php Code, & Call/include User Session Into The Link? - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › How To Break Down A Link In Php Code, & Call/include User Session Into The Link? (605 Views)
| How To Break Down A Link In Php Code, & Call/include User Session Into The Link? by fineboynl(op): 8:51am On Aug 09, 2018 |
for developer only pleased help me out, i need to call the sms APIs on my project i'm working on, its a user session account area. http://api.ebulksms.com:8080/sendsms?username=mike3003@gmail.com&apikey=a4a2c93f419ae9e6bd5gh56608326ae045ec298&sender=informan&messagetext=Welcome_sessionName&flash=1&recipients=2348158448958 is there any way i can break this link via php and insert session info into the link from sql database table and call it? eg $_SESSION['hl_user']['phone']; will be in that recipients, message to send e.t.c |
| Re: How To Break Down A Link In Php Code, & Call/include User Session Into The Link? by LaiveNg: 10:21am On Aug 09, 2018 |
Your idea is vague; it's not clear what you want to do. Normally an SMS API should have parameters to help you make requests. Simply use urlencode() function to encode the parameters you'll be sending to the URL. |
| Re: How To Break Down A Link In Php Code, & Call/include User Session Into The Link? by fineboynl(op): 6:57pm On Aug 09, 2018*. Modified: 10:01am On Aug 10, 2018 |
LaiveNg:please help me out with the urlencode. I need to implement it inside php this below code work well but the problem is that i want to include session data from my sql database into that recipients instead, but $_SESSION['hl_user']['phone']; brings error. // Account details |
| Re: How To Break Down A Link In Php Code, & Call/include User Session Into The Link? by LaiveNg: 7:08pm On Aug 11, 2018 |
Ensure you add session_start() on the very top of the page you wish to use the session variables. And also, PHP session values are usually accessed using $_SESSION['your_key_here']; AND NOT $_SESSION['dummy_stuff']['your_key_here']. |
| Re: How To Break Down A Link In Php Code, & Call/include User Session Into The Link? by fineboynl(op): 4:41pm On Aug 15, 2018 |
LaiveNg:i yes, did that, i'm sure it need function. string, can you help me out with this. i have glo 1k for you. |
| Re: How To Break Down A Link In Php Code, & Call/include User Session Into The Link? by LaiveNg: 5:21pm On Aug 15, 2018 |
Let me see your code and the error message being spit out. Whatsapp 09055589180 Voice call 07014509524. |
| Re: How To Break Down A Link In Php Code, & Call/include User Session Into The Link? by fineboynl(op): 7:03pm On Aug 15, 2018 |
LaiveNg:your last seen on WhatsApp was Sunday |
| Re: How To Break Down A Link In Php Code, & Call/include User Session Into The Link? by LaiveNg: 9:00pm On Aug 15, 2018 |
fineboynl:That's not the issue. My replies on Whatsapp are only for important messages. I have replied yours. |
| Re: How To Break Down A Link In Php Code, & Call/include User Session Into The Link? by fineboynl(op): 9:03pm On Aug 15, 2018 |
LaiveNg:already open that in another thread and called you. open the thread |
I Am A Pharmacy Student Struggling To Break Into The World Of Coding • Anyone Who Can Help Me Solve This Php Code Will Gets 1k Glo Airtime • Php Code To Make A Forum Support Youtube Embed On A Post • 2 • 3 • 4
Facebook Down! • Gtbank Vs Dstv • Is Ghana Blogging Industry Lacking Proper Keyword Research Or Is Not Saturated