Hi Vacunita,
I'm hoping to find a way to insert Username into the email's "From" field... needs some looking into.
You said:
I did the "Username" verification code before I came here with the 'just one input' problem :) The form doesn't process without it. Here's the code I've used...
Hi Vacunita,
some bad news and some very GOOD news :) ... first, let me address your points:
a) IF the host is overriding the "From" field, is it possible to get around this?
b) $_POST['Username'] can never be an empty field (it's mandatory).
c) I've checked again, and the caps/l-cases match...
Hi Vacunita,
that's great! Many thanks for solving the "msg" issue. It all makes sense now :) Also thanks for the code and explanations re. the index notice, I see what you mean. I've come across the isset() function on other boards, etc, but haven't used it yet. Was sure it was something to do...
Hi Vacunita,
thanks for the reply. Basically, the form should be submitted + processed even if only ONE radio button has been checked. Likewise, the user can enter a comment into just ONE text field, not selecting any radios, the point being that the PHP script should never accept a 'blank'...
Hi Preachie,
thanks for the quick response!
I'm such a novice at PHP... hopefully I'll pick it up as I go along :)
OK, I've changed the || to && in the 'if' statement, but am probably still very far from a solution. Re. the mail function, I suppose I should define $subject as $subject =...
Hello,
I'm new to PHP and am having problems getting PHP to validate a HTML form that contains multiple radio buttons and text fields.
Basically, the form has 7 sections, each pertaining to an MP3 track. In each section the user has to select one of four radio buttons (poor, average, good...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.