techrahul87 Posted July 6, 2011 Share Posted July 6, 2011 i have many html forms like enquiry, contact us, career form in which mail is being sent. i had created a sendmail php file in which I want to get values from all the forms. now how i acccess the form because forms name cant be used. should i use a hidden field. is there any other way........... please suggest me some thing........ Quote Link to comment https://forums.phpfreaks.com/topic/241186-accessing-many-forms-by-one-php-form/ Share on other sites More sharing options...
priti Posted July 6, 2011 Share Posted July 6, 2011 Yes you can use hidden form field. setting session variable example 'current_form' can also be useful. Quote Link to comment https://forums.phpfreaks.com/topic/241186-accessing-many-forms-by-one-php-form/#findComment-1238896 Share on other sites More sharing options...
techrahul87 Posted July 6, 2011 Author Share Posted July 6, 2011 ok then i will use hidden fields.........thanks Quote Link to comment https://forums.phpfreaks.com/topic/241186-accessing-many-forms-by-one-php-form/#findComment-1238987 Share on other sites More sharing options...
xyph Posted July 6, 2011 Share Posted July 6, 2011 Hidden form fields are your BEST BET Avoid using sessions for things like these, as a user visiting another page in another tab could over-ride previously set and unchecked session variables. Sessions should not be used to transmit dynamic data from page to page. Quote Link to comment https://forums.phpfreaks.com/topic/241186-accessing-many-forms-by-one-php-form/#findComment-1239002 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.