Form values not submitting to php mail -


my problem follows:

i have these inputs:

<select class="span1 select_rooms" id="zimmern">     <option>1</option>     <option>2</option>     <option>3</option>     <option>4</option>     <option>5</option> </select> <input type="text" class="span9 mail" id="email" /> 

and php code:

$success = false; $senderemail = isset( $_post['email'] ) ? preg_replace( "", "", $_post['email'] ) : ""; $zimmern = isset( $_post['zimmern'] ) ? preg_replace( "", "", $_post['zimmern'] ) : ""; $message = 'email: '.$senderemail.'message: '.$zimmern;' 

which html attribute recognized php variables?

your form fields have no name attributes. without them values not submitted.

<select class="span1 select_kids" id="kinder"> 

should be

<select class="span1 select_kids" name="kinder" id="kinder"> 

etc.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -