Hello im trying to make html contact form that sends the info to whatsapp and i’m not reciving the messages on my whatsapp, i will post here the code.. and another question after i open whatsapp sandbox on Twilio i need to put another link on Twilio WebHook??
<?php // Update the path below to your autoload.php, // see https://getcomposer.org/doc/01-basic-usage.md require_once '/twilio-php-main/src/Twilio/autoload.php'; use TwilioRestClient;_POST['fullname'];
_POST['phone'];
_POST['message'];
token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
sid,
message =
name nPhone:
message" ) ); print($message->sid); ?>
<!DOCTYPE html> <html> <head> <title>Page Title</title> <meta name='viewport' content='width=device-width, initial-scale=1'> </head> <body> <div class="container"> <form method="post" action="main.php"> <label for="fullname">Full Name</label> <input type="text" id="fullname" name="fullname" placeholder="Your full name.."> <label for="phone">Phone Number</label> <input type="text" id="phone" name="phone" placeholder="Your phone number.."> <label for="message">Message</label> <textarea id="message" name="message" placeholder="Write something.." style="height:100px"></textarea> <input type="submit" value="Submit"> </form> </div> </body> </html> <style> body {font-family: Arial, Helvetica, sans-serif;} *{box-sizing: border-box;}input[type=text], select, textarea {width: 100%;padding: 12px;border: 1px solid #ccc;border-radius: 4px;box-sizing: border-box;margin-top: 6px;margin-bottom: 16px;resize: vertical;}input[type=submit] { background-color: #bd1321;color: white;padding: 12px 20px;border: none;border-radius: 4px;cursor: pointer;}input[type=submit]:hover {background-color: #9c0814;}.container {border-radius: 5px;background-color: #f2f2f2;padding: 20px;} </style>
Anonymous Asked question May 14, 2021
Recent Comments