I have a fom that uses passed values from a linked page. I am writing a simple form for people to request an auto quote from some insurance agents that are helping our charity fundraiser. It uses two values “agent” and “agentEml” from a prior page so that the form data can be sent to the proper agent. I want the form to write to a basic text file on the server, and also send the date in a formatted email to the agent.
Right now I am going step by step just making sure things are working as I go. It seems that some of my POST items are not writing to the txt file. Also, it seems that data does not always write to the txt file either. Its not consistent. I will hit the submit button once, and the form seems to post successfully, but there is nothing in the data file. I do it again, and still nothing. Then again and it writes, but not all of the data from the form. Its driving me nuts. I cant find any problems that I can see. So maybe someone here can help.
Here is the URL that is passing the initial data:
here is the form code[code]
CureT1 - Alfa Quote Request Form <?php $agent = $_GET['agent']; $agentEml = $_GET['agentEml']; ?>Agent Name | |
Your First Name | |
Your Last Name | |
Your Email | |
Your Phone Number | |