I am trying to convert a form entry on a PHP / MySQL website. I wanted better UX for the data input/entry, so using HTML5 through Hype.
I have attached my simple form, for reference.
Having saved / exported it to a folder, I have copied the 3 “div” lines to embed in on a page and uploaded the Hype resources subfolder.
How do I incorporate this into a typical PHP for POST?
The tables I am writing 2 are linked with a foreign key, so I write 1, obtain the unique ID which is used for the 2nd write. In PHP, the final commit lines are:
$rid = insert_new_round($insertday, $hcap, $playerid, $nine, $hcap34);
- Can I do this directly in Hype? I had hoped to use the “Submit” button in the Hype UI…
- Can I access the Hype variables from PHP? This could be useful as there are some other variables I generate in PHP currently that I could make use of.
testing.zip (51.1 KB)