this my php form (form1.php)
<html>
<body>
<form action="process1.php" method="post">
E-mail: <input type="text" name="email" required ><br><br>
Password: <input type="text" name="pass" required ><br><br>
<input type="submit">
</form>
<html>
<body>
process.php
<?php $email = $_POST["email"]; ?>
<?php $pass = $_POST["pass"]; ?>
<?php echo($email) ?> <br>
<?php echo($pass) ?> <br>
i want to use $email , $pass variable values from php. And i want to send data from the varibles to my salesforce account using python to a custom object...
python file
import requests
import json
from simple_salesforce import Salesforce
sf = Salesforce(username="USER", password= "PWD",security_token="" )
print(sf)
params = {
"grant_type": "password",
"client_id": "X0000XXXX",
"client_secret": "XX00000X",
"username": "XXX0XX",
"password": "XX0XX"
}
dataset = [{'email__c':'$email(this should be the variable from php)', 'password__c': '$pass (this should be the variable from php) '}]
sf.bulk.aryan__c.insert(dataset,batch_size=1,use_serial=True)