where is this promocode coming from? Why don't you just let the form generator handle everything? Create a form with the promocode field as a textbox and in the end tell it to store info into a mysql database. it will take care of everything for you. you don't need to manually create any part of the form.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a form with one txt field and a homemade button
www.eatandwin.info
I would like to pass on the promocode to either the form1.html or the process.php and or global.inc.php and finally on to the database.
the promocode field exist in the DB with PHPmyAdmin
the promocode is in the process.php file:
pt_register('POST','promocode');
and the global.inc.php is doing whatever it does
where is this promocode coming from? Why don't you just let the form generator handle everything? Create a form with the promocode field as a textbox and in the end tell it to store info into a mysql database. it will take care of everything for you. you don't need to manually create any part of the form.