Jump to content

Archived

This topic is now archived and is closed to further replies.

wizzkid

PHP Feedback Form

Recommended Posts

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.com
username:guest@i-bsc.com
password: 12345
Port:21

Thanks guys and hoped you could help me :)

Share this post


Link to post
Share on other sites
any? [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
[!--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 :)

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
For textarea you do this:
[code]<textarea name="name"><?=$_POST['name'];?></textarea>[/code]

Share this post


Link to post
Share on other sites
[!--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 :)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.