hanlonj Posted June 14, 2007 Share Posted June 14, 2007 Hi Guys, I haven't used php for a while and so I need a pointer in the right direction. This is the problem: (This is for a friends' company so I have no say over adding a database etc.) I have a form and it includes textfields, groups of check boxes and goups of radio buttons. I want the user to fill out the form ( I can handle the form validation stuff myself). I then want the user to hit "Send" and the form comes to me via email (i.e. no database usage). Please see: http://grungefreak.com/register.php I am not too good with checkboxes and radio buttons. Can someone give me some high level advice on how I would gather all the info. and send via email without using a database. I realise this is a very broad question so hit me back with some questions if you like. Hanlonj Link to comment https://forums.phpfreaks.com/topic/55591-send-form-via-email/ Share on other sites More sharing options...
Full-Demon Posted June 14, 2007 Share Posted June 14, 2007 Radio buttons have a name and a value. If the name is 'sex' and button one has value 'male' and second values is 'female', than you can gather the information (if you form had method='post') with this: $_POST['sex'], this value can be male, female or something like unselected/noone/null Checkboxes, im not sure, perhaps w3schools.com has a reference for that? FD Link to comment https://forums.phpfreaks.com/topic/55591-send-form-via-email/#findComment-274784 Share on other sites More sharing options...
hanlonj Posted June 14, 2007 Author Share Posted June 14, 2007 OK Thanks. Hanlonj Link to comment https://forums.phpfreaks.com/topic/55591-send-form-via-email/#findComment-274832 Share on other sites More sharing options...
hanlonj Posted June 15, 2007 Author Share Posted June 15, 2007 I have a group of textboxes that ask the user which hours they prefer to work e.g. checkBox1 = evenings, checkBox 2 = mornings etc. I know now that I can name the check boxes and give them each a value which will work fine for gathering information. But I saw somewhere that you should really use arrays in matters like this. Can anyone help with the array thing? hj Link to comment https://forums.phpfreaks.com/topic/55591-send-form-via-email/#findComment-275429 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.