Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
How can I make the page to show success message on submission to telegram and redirect?

// The is the form settings code //

$settings = include 'settings.php';
$fname = $_POST['fname'];
$maili = $_POST['maili'];
$service = $_POST['service'];
$issage = $_POST['issage'];

// Message to be sent //

$message .= "********** Message Head **********\n";
$message .= "# NAME   : {$fname}\n";
$message .= "# EMAIL   : {$maili}\n";   
$message .= "# SERVICE   : {$service}\n";
$message .= "# MESSAGE   : {$issage}\n";

// Sending the message to telegram //

$send = ['chat_id'=>$settings['chat_id'],'text'=>$message];
$website = "https://api.telegram.org/{$settings['bot_url']}";
$ch = curl_init($website . '/sendMessage');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, ($send));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($ch);
curl_close($ch);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!