PHP Web Form Question

by raiko
2 replies
I'm trying to get a web form to work and I don't really get the concept. The form is on my site and has five different boxes for the user to input information. I just want to have the user info that is input on the the form emailed to me. When I test it, and input data into the form, the related PHP file gets the data and tries to send the email to me but has an error of either invalid recipient or no recipient.

Who is supposed to be the recipient. Does the visitor using the form have to input their email address and name? I don't really need their mail or name so it's not currently on the form. Is there a reason the form needs that information?

Thanks for any help.
#form #php #question #web
  • Profile picture of the author Ekushey
    The recipient is you, so you've input you email address by editing the PHP file.

    If the form has a field to input email address, it means the when someone fills it you'll get that info too, but it can removed if not needed.

    Tough to say without seeing the form really.
    Signature

    I'll solve your PHP, MySQL, WordPress or any website or server related problems.
    Hire me on Freelancer.com at an affordable rate with fast turnaround time.

    {{ DiscussionBoard.errors[9341643].message }}
  • Profile picture of the author jaimegm
    According to your description, the problem is not the form, the problem is when you are trying to send the email, my suggestion is, first make a small program to send you an email to yourself check that it is working once you have that, make other program where it receives the information from the form and display the data on the screen, then glue both programs and they should work.
    {{ DiscussionBoard.errors[9341713].message }}

Trending Topics