WebSite X5Help Center

 
David  T.
David T.
User

Posting data using http  en

Autor: David T.
Visitado 1409, Seguidores 1, Compartilhado 0  

Hi, I need to send data from a form in the website. Previously I used

Method= "POST"

action="http://www.bulksms.co.uk:5567/eapi/1.0/phonebook/public_add_member?group_id=50963"

The only form options appear to be send by email, or link to a database. My question is, how do I achieve this in Website X5 Evolution.

Publicado em
5 RESPOSTAS - 1 CORRIGIR
John S.
John S.
User

Hello David

You can send an attachment ( add an attachment in the form ) by the mail. But this is an attachment that the client gets from his computer.

Maybe you mean that a file should be sent together with the form ?

If it is to supply the client with a file, you could add a link to the file or a download button.

If this is not what you mean, then please some more information about the purpose.

Kind regards

John S.

Ler mais
Publicado em de John S.
David  T.
David T.
User
Autor

The requirement is to gather three pices of information from a form on the website (first name, last name & tel number) then send that info to our account at BulkSMS.Co.Uk. It was fairly straightforward when it was setup initialy, but the form options are very different in Website X5.

Ler mais
Publicado em de David T.
John S.
John S.
User

Hello David

You should be able to do this.

The form data can/is sent to the one that fills out the form, and then you can specify a mail-address to receive the form data - this address could be the account ( mailaddress ) at BulkSMS.

And you can also store the data.

If you have email service where you are hosted, then you could have an email that forwards the email to several addresses if this is what you want.

Or do I not understand what you are telling ?

Kind regards

John S.

Ler mais
Publicado em de John S.
David  T.
David T.
User
Autor

Thanks for the responses. The only way I could find to overcome the issue was by inserting the following code for the form:

<form method="POST" action="http://www.bulksms.co.uk:5567/eapi/1.0/phonebook/public_add_member?group_id=50963" target="_self" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
    <blockquote>
        <blockquote>
            <p align="center">&nbsp;<font color="#0000B0">&nbsp;First
            Name:</font>&nbsp;<!--webbot bot="Validation" s-data-type="String" b-allow-letters="TRUE" b-value-required="TRUE" i-minimum-length="3" --><input type="text" name="given_name" size="20" style="border: 2px inset #000080">&nbsp; &nbsp;&nbsp;
            <font color="#0000B0">Surname:</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <!--webbot bot="Validation" s-data-type="String" b-allow-letters="TRUE" b-value-required="TRUE" i-minimum-length="3" -->
            <input type="text" name="surname" size="20" style="border: 2px inset #000080">&nbsp;
            <font color="#0000B0">Mobile No: </font>&nbsp;<!--webbot bot="Validation" s-data-type="Integer" s-number-separators="x" b-value-required="TRUE" i-minimum-length="12" --><input type="text" name="msisdn" size="12" value="44" style="border: 2px inset #000080"></p>
            <p align="center">
            <input type="submit" value="Register for SMS" name="B1" style="border: 5px outset #FFFFFF"></p>
        </blockquote>
    </blockquote>
    <input type="hidden" name="fail_url" value="http://www.coggeshallbus.co.uk/failsms.html">
    <input type="hidden" name="success_url" value="http://www.coggeshallbus.co.uk/successsms.html">
</form>

-------------------------------------------------------------------------------------------

The forms that I required are now working perfectly.

Ler mais
Publicado em de David T.