I am trying to transfer a variable from the URL into a contact form for saving to a MySQL database but don´t know how to do it correctly. SInce my needs are way above my knowledge in PHP and MySQL I am basically hacking a form plugin for rapidweaver which of course is causing all sorts of problems.
Say I have this url: http://www.example.com/index.php?id=200000
and I want to have the “200000” to show up in the form as the input in one of the fields.
I´ll reveal my naivity and complete lack of PHP knowledge by posting my own suggestion:
<input type="hidden" name="form[item_99]" id="item_99" class="fl-hidden" value="<?php echo @check('item_99','hidden','',id); ?>" />
(never mind the form item is set as hidden)
Of course that transfers “id”, not the value of the “url-variable” id. I tried $_get['id']. It transferred nothing.
Any suggestions?