Dropdown does not Submit any value

1 posts, 0 answers
  1. Nico
    Nico avatar
    1 posts
    Member since:
    Apr 2012

    Posted 23 Apr 2012 Link to this post

    Hi,
    i have a problem with the dropdown-box. It does not submit any value.
    My Form looks like this:
    <form action="/setseeker/users/add/" id="UserAddForm" method="post" accept-charset="utf-8">
    	<input type="hidden" name="_method" value="POST"/>
    
    <span class="label">Mail</span>
    	<div class="input text required">
    		<input name="data[User][email]" maxlength="255" type="text" value="" id="UserEmail"/>
    	</div>
    SOME OTHER FORM ELEMENTS
    	<span class="label">Pro Nutzer</span>
    	<div class="input select">
    		<select name="data[User][ispro]" id="UserIspro">
    		<option value="0">Nein</option>
    		<option value="1">Ja</option>
    		</select>
    	</div>
    
    
    	<div class="submit">
    		<input  type="submit" value="Erstellen"/>
    	</div>
    </form>
    The Post looks like:
    Array
    (
        [_method] => POST
        [data] => Array
            (
                [User] => Array
                    (
                        [username] => 
                        [password] => 
                        [email] => test@web.de
                        [newpassword] => 1
                    )
    
            )
    
    
    As you can see, there is no value for
    <select name="data[User][ispro]" id="UserIspro">


    I dont know whats wrong. I hope someone of you may help me to fix this error.

    Thanks
    Nico
Back to Top