Note that there are some explanatory texts on larger screens.

plurals
  1. POOnclick submit, in a form, get inputbox value into variable and output it into another inputbox
    primarykey
    data
    text
    <p>I am developping a job appliance form, that outputs its results into a CRM (Customer Relationship Management).</p> <p>My problem is that my client wants the fields "Street Adress, Postal Code and locality" outputted all together in one single field in CRM, after inputted in different fields on the form.</p> <p>So i thought i should use php for when the user clicks on submit it gets the value of each one of the fields and inputs it into an hidden field i created. for some reson, as i am not a php expert, it isn't working. It is really not outputting any value into the CRM</p> <p>this is what i've got so far:</p> <pre><code>&lt;form action="https://service.capsulecrm.com/service/newlead" method="post"&gt; &lt;input name="morada" id="morada" maxlength="255" title="" style="border-style: solid; border-width: 1px; border-color: #cccccc; position: absolute; margin: 0px; padding: 0px; width: 220px; height: 20px; font-family: Tahoma; font-size: 11px; color: #333333; background-color: #ffffff; z-index: 1; left: 189px; top: 397px;" value="" type="text"&gt; &lt;input name="postal" id="postal" maxlength="255" title="" style="border-style: solid; border-width: 1px; border-color: #cccccc; position: absolute; margin: 0px; padding: 0px; width: 220px; height: 20px; font-family: Tahoma; font-size: 11px; color: #333333; background-color: #ffffff; z-index: 1; left: 189px; top: 437px;" value="" type="text"&gt; &lt;input name="local" id="local" maxlength="255" title="" style="border-style: solid; border-width: 1px; border-color: #cccccc; position: absolute; margin: 0px; padding: 0px; width: 220px; height: 20px; font-family: Tahoma; font-size: 11px; color: #333333; background-color: #ffffff; z-index: 1; left: 189px; top: 467px;" value="" type="text"&gt; &lt;?php if ($_POST['submit']) { $addressmorada = $_POST['morada']; $addresspostal = $_POST['postal']; $addresslocal = $_POST['local']; echo "&lt;input type='hidden' name='STREET' value='".$addressmorada. " " .$addresspostal. " " .$addresslocal."' /&gt;"; } ?&gt; &lt;input name="submit" type="submit" value="Submit" style=" border-style: none; border-width: 0px; border-color: #888888; position: absolute; margin: 0px; padding: 0px; width: 93px; height: 33px; z-index: 1; left: 433px; top: 1773px; text-indent: 99999999999999px; background: green; cursor: pointer; "&gt; &lt;/form&gt; </code></pre> <p>I will try to explain my PHP code,</p> <ol> <li>the if statement it's calling the function on submit.</li> <li>the variables get the different input values.</li> <li>I echo an input field type hidden, calling the variables, so that all the information is outputted into the CRM in one single field</li> </ol> <p>I think the major problem may be on number 3! i'l apreciate any help. Sory if my english is bad, it's not my mother language.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload