Jump to content


Photo

PHP Feedback Form


  • Please log in to reply
6 replies to this topic

#1 wizzkid

wizzkid
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 16 June 2006 - 09:47 AM

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 :)

#2 wizzkid

wizzkid
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 17 June 2006 - 12:13 PM

any? [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]

#3 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 17 June 2006 - 07:30 PM

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:

Name: <input name='name' type = 'text' value='<?= $_POST['name']?>'>

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.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#4 wizzkid

wizzkid
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 18 June 2006 - 10:21 AM

[!--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 :)

#5 wizzkid

wizzkid
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 19 June 2006 - 09:40 AM

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

#6 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 19 June 2006 - 10:48 AM

For textarea you do this:
<textarea name="name"><?=$_POST['name'];?></textarea>


#7 wizzkid

wizzkid
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 20 June 2006 - 09:06 AM

[!--quoteo(post=385581:date=Jun 19 2006, 05:48 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Jun 19 2006, 05:48 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
For textarea you do this:
<textarea name="name"><?=$_POST['name'];?></textarea>
[/quote]

Thanks a lot :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users