Hello, I am having a problem with my php email script and im at the end of my nerves trying to figure it out. If anyone could help me I would be forever grateful. THANK YOU SO MUCH IN ADVANCE!!
Basically Im making an online guestlist for a wordpress page. I have a contact form that im trying to collect the variables from to send to an email address. The problem Im having is that I cant get the radio box information to send. All the other fields send fine but the event field returns blanks and I cant figure out why.
Looking at code such as yours always makes me want to cry. Don’t take it the wrong way please, I’ll try to show you what I mean - at a first glance, as it was mentioned - script does look ok. So the next candidate is validating whether your HTML is actually ok. By looking at the script, there’s so many escaped quotes and such so one can’t really determine whether HTML is ok or not by looking at the php code.
Wouldn’t it be better if your code looked like this:
Yes, They are pulling the dynamic content from my cms. I assume they are fine since I can view the source of the guestlist page and the values are all there in the buttons. They just arent pulling thru my script.
# Error Line 90, Column 538: document type does not allow element "ul" here; missing one of "object", "ins", "del", "map", "button" start-tag
…* Event:</label><ul class="eventclass"><li><input type="radio" value="Voodoo91…
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Not sure what that means. I checked my syntax and everything looks ok
Since all what happens here is that PHP does something and spits out HTML.
You can then view that html (view > source in many browsers), navigate to the bit where the radio buttons are and check what it says in value attribute.
If there’s nothing there - you know the reason to your problem.
Thanks for the help, I truely appreciate it. Im not quite following you on the escaping quotes part…do u mean I should cut and past the html so I can follow the code easier? I guess I figured it was all php and didnt think about the html inside getting all foobared when i copied it.
I have not checked to see if my buttons have any value after the script. Im not sure how to check to be honest with ya. Thanks for pointing me in the right direction