在php中将数据发布到外部URL

时间:2016-01-13 10:26:44

标签: php drupal salesforce

我有一个这样的php文件(HTML代码由web生成,来自salesforce):

<?php
    module_load_include('inc', 'node', 'node.pages');
?>

<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

    <input type=hidden name="oid" value="00D200000000WlM">
    <input type=hidden name="retURL"    value="http://www.listertechnologies.com/contact-us">
    <label for="first_name">First Name</label><em>*</em><input  id="first_name" maxlength="40" name="first_name" size="20" type="text" required/><br>
    <label for="last_name">Last Name</label><em>*</em><input  id="last_name" maxlength="80" name="last_name" size="20" type="text" required/><br>
    <label for="email">Email</label><em>*</em><input  id="email" maxlength="80" name="email" size="20" type="text" required/><br>
    <label for="company">Company</label><input  id="company" maxlength="40" name="company" size="20" type="text" /><br>

    Please select nature of enquiry:<em>*</em><select  id="00ND0000006U5Eo" name="00ND0000006U5Eo" title="Please select nature of enquiry" required>
        <option value="">--None--</option><option value="I need a solution">I need a solution</option>
        <option value="I have a question">I have a question</option>
        <option value="I am looking for a career opportunity">I am looking for a   career opportunity</option>
    </select><br>

    Message:<textarea  id="00ND0000006U5Et" name="00ND0000006U5Et" rows="3" type="text" wrap="soft"></textarea><br>

    <input type="submit" name="submit">

</form>

我想在将其发送给salesforce之前处理一些逻辑。就像它是职业生涯(下拉菜单中的一个选项)然后不要提交给salesforce只是发送邮件给某个部门。我是php新手,任何帮助都会得到解决,

0 个答案:

没有答案