Format to insert data
-
Hi, thanks for this plugin. We have a couple of issues with our form, wondering if these can be addressed within CF7 or need addressing elsewhere.
- Looking to import a string variable into a database meta field that expects the format a:1:{i:0;s:8:”12345678″;} where 12345678 is the variable.
Including the variable in a string to match the above adds s25 and quotes when the data is inserted into the database, ie s:25:”a:1:{i:0;s:8:”63028828″;}”; which is then unrecognised by the page requiring this data.
Applying json encode to the data gives us “a:1:{i:0;s:8:”12345678″;}”, again the quotes prevent the data from being read.
How might we pull through our core string as intended without it being wrapped? - We’d like the Select option values to pull through differently from their labels, ie a ’20 images’ label pulls through 20 as the value. Inital tests using pipes haven’t worked, is there anywhere within Post My CF7 Form that addresses this?
Thanks for any help, excuse me if I’ve missed anything obvious.
- Looking to import a string variable into a database meta field that expects the format a:1:{i:0;s:8:”12345678″;} where 12345678 is the variable.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Format to insert data’ is closed to new replies.