text-input to php-variable

TReissig 18 Jul, 2023
Hello Forum,
I am new to CF7 and am trying to manually transfer all my forms from another site (CF5). So I am creating them completely new in CF7.
I have a form there, where after entering a serial number is checked whether a matching file is on the server.
In CF7 is on start_page the text field "sn".
On end_page the check should run via PHP. But here I fail to pack the content from the field "sn" into a php variable.
In CF5 I simply used
$s_sn = $form->data['sn'];

In CF7 this does not work.
I've already searched the forum and kept coming across the same syntax. But what am I doing wrong?

Here you can download a backup of the form: https://we.tl/t-ZniJC8pZOO
Hope anyone can help me a little bit🙂
text-input to php-variable image 1
text-input to php-variable image 2
TReissig 18 Jul, 2023
Answer
Solved by myself.
Instead of
$s_sn = $form->data['sn'];

I have to use
$s_sn = $this->data['sn'];
You need to login to be able to post a reply.