Jump to content

PHP Feedback Form


wizzkid

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 :)
Link to comment
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.
Link to comment
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 :)
Link to comment
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 :)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.