zartzar Posted June 24, 2010 Share Posted June 24, 2010 I have this form and i want it to automatically send a randomly generated number together with whatever else the user typed in. The random number is to be used a a primary key in the mysql database. How would i go about this? Quote Link to comment https://forums.phpfreaks.com/topic/205797-automatically-sending-variables-when-submitting-a-form/ Share on other sites More sharing options...
premiso Posted June 24, 2010 Share Posted June 24, 2010 Why not just use an auto_increment attribute on the id column field of the table? That is sort of the point of them. Quote Link to comment https://forums.phpfreaks.com/topic/205797-automatically-sending-variables-when-submitting-a-form/#findComment-1076908 Share on other sites More sharing options...
zartzar Posted June 24, 2010 Author Share Posted June 24, 2010 Why not just use an auto_increment attribute on the id column field of the table? That is sort of the point of them. Thx i'll try that. My second problem to automatically send the details of the current user in session, for eg the users email adress. I already have a function that can retrieve that info.... i just need to know how to send it when the form is submitted Quote Link to comment https://forums.phpfreaks.com/topic/205797-automatically-sending-variables-when-submitting-a-form/#findComment-1076910 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.