Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Server-side Scripting _ Reading and writing to a Klaviyo form

Posted by: tudsy Apr 13 2022, 08:16 AM

Hi

I am having problems reading data from a form and writing to a form in Klaviyo.

I have made a start but am I on the right track?

Attached is a copy of the form and the two relevant php files.


Form.php calls the form and process.php processes the data.


Thanks.


Attached thumbnail(s)
Attached Image

Attached File(s)
Attached File  form.txt ( 5.34k ) Number of downloads: 222
Attached File  process.txt ( 3.93k ) Number of downloads: 227

Posted by: CharlesEF Apr 14 2022, 01:48 PM

I have no idea what 'Klaviyo' is but I looked over your code. Your HTML structure is messed up and you don't have a form opening tag anywhere in the page (you do have a form closing tag). You have meta and script tags placed between the html and head tags. Those should be in the head section.

How is form called? I don't understand your logic.

Posted by: tudsy Apr 15 2022, 11:38 AM

QUOTE(CharlesEF @ Apr 15 2022, 04:18 AM) *

I have no idea what 'Klaviyo' is but I looked over your code. Your HTML structure is messed up and you don't have a form opening tag anywhere in the page (you do have a form closing tag). You have meta and script tags placed between the html and head tags. Those should be in the head section.

How is form called? I don't understand your logic.



Thanks for that.



The form is made from dragging and dropping from www.klaviyo.com.


Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)