wizzkid Posted June 16, 2006 Share Posted June 16, 2006 Hi guys, I need a little help... I am curretly studying php. My problem is with feedback forms.I want to do is:1. user fill up form.2. user should verify if all informations are correct.note: user a text field is possible? (eg. Name: wizzkid, instead of that, wizzkid should be inside the text fiels so the user will just change right there and then, instead of going back)3. Send the form to email.I uploaded my script at [a href=\"http://www.leeph.net/bugs/\" target=\"_blank\"]http://www.leeph.net/bugs/[/a]User fill up forms and verify works fine, however, when I hit submit on verify form, it sayd that name, email etc. (all the information) was missing. the script works perfectly.. however, I am playing around with verify form if it will work, unfortunately not. I uploaded my script in txt format so you guys could see what's missing [a href=\"http://www.leeph.net/bugs/txt/\" target=\"_blank\"]http://www.leeph.net/bugs/txt/[/a]If you guys want to edit them(txt), you can access the ftp i created.Host. ftp.i-bsc.comusername:guest@i-bsc.compassword: 12345Port:21Thanks guys and hoped you could help me :) Quote Link to comment https://forums.phpfreaks.com/topic/12138-php-feedback-form/ Share on other sites More sharing options...
wizzkid Posted June 17, 2006 Author Share Posted June 17, 2006 any? [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] Quote Link to comment https://forums.phpfreaks.com/topic/12138-php-feedback-form/#findComment-46626 Share on other sites More sharing options...
.josh Posted June 17, 2006 Share Posted June 17, 2006 dude, first off, never give out info like passwords and stuff. you should remove that info from your post ASAP.2nd, if your script is working fine except for "auto-filling" out the stuff in the form when the user clicks submit but it fails the validation check, you need to put the posted info as the value in the form elements. example:[i]Name: <input name='name' type = 'text' value='<?= $_POST['name']?>'>[/i]if it is the first time and user has not hit submit yet, it would be the same as doing value='' and nothing will show. if the user puts wizzkid in the name field but leaves out the email or something so that it goes back to the form, it will be the same as doing value='wizzkid' and it will show wizzkid in the textfield. if the user changes wizzkid to dumbkid or whatever and clicks submit again, $_POST['name'] will now be dumbkid. or if they leave it alone and click submit, it would still be wizzkid. Quote Link to comment https://forums.phpfreaks.com/topic/12138-php-feedback-form/#findComment-46749 Share on other sites More sharing options...
wizzkid Posted June 18, 2006 Author Share Posted June 18, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] dude, first off, never give out info like passwords and stuff. you should remove that info from your post ASAP. [/quote]Hi Crayon Violet, Thank you so much for your concern with regards to the access, Dont worry, The account I posted on this forum is just a guest account, thus it can only browse the specify location. and I just put 10mb space on it. :) and I will remove it once done. :) Thank you so much for your help as well I will try to work this thing out. Once again, Thanks. God bless :) Quote Link to comment https://forums.phpfreaks.com/topic/12138-php-feedback-form/#findComment-46951 Share on other sites More sharing options...
wizzkid Posted June 19, 2006 Author Share Posted June 19, 2006 Hi, Name: <input name='name' type = 'text' value='<?= $_POST['name']?>'>works on a textfield, but not on textarea. :(What value should I put on textarea? :)Hope you could help me.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/12138-php-feedback-form/#findComment-47241 Share on other sites More sharing options...
wildteen88 Posted June 19, 2006 Share Posted June 19, 2006 For textarea you do this:[code]<textarea name="name"><?=$_POST['name'];?></textarea>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/12138-php-feedback-form/#findComment-47256 Share on other sites More sharing options...
wizzkid Posted June 20, 2006 Author Share Posted June 20, 2006 [!--quoteo(post=385581:date=Jun 19 2006, 05:48 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Jun 19 2006, 05:48 AM) [snapback]385581[/snapback][/div][div class=\'quotemain\'][!--quotec--]For textarea you do this:[code]<textarea name="name"><?=$_POST['name'];?></textarea>[/code][/quote]Thanks a lot :) Quote Link to comment https://forums.phpfreaks.com/topic/12138-php-feedback-form/#findComment-47570 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.