 <% if ( typeof message != 'undefined') { %>
<p style="text-align: center; color: red;"><%= message %></p>
<% } %>

<% var array = ["","","","","","","","","","","",""]; %>

<% array[carrier] = "selected" %>

	

<br>
<div style ="text-align: center;">
     <form action="/updateAccount" method="post">
            <div>
                <label class="login">Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                <input type="text" name="email" value="<%= user.email %>"/><br/>
            </div>
            <br>
            <div>
                <label class="login">Password:&nbsp;&nbsp;</label>
                <input type="password" name="pw" value="<%= user.pw %>"/>
            </div>
            <br>
            <div>
                <label class="login">Device ID:&nbsp;</label>
                <input type="text" name="deviceID" value="<%= user.deviceID %>"/><br/>
            </div>
            <br>
            <div>
                <label class="login">First Name:</label>
                <input type="text" name="fname" value="<%= user.fname %>"/>
            </div>
            <br>
            <div>
                <label class="login">Last Name:</label>
                <input type="text" name="lname" value="<%= user.lname %>"/><br/>
            </div>
            <br>
            <div>
                <label class="login">Phone Number(ex. 4075551234):</label>
                <input type="text" name="pNum" value="<%= user.pNum %>"/>
            </div>
            <br>
            <div>
                <label class="login">Phone Carrier:</label>
                <!-- <input type="text" name="pCarrier"/><br/> -->
                <select name="pCarrier">
                    <option value="@text.wireless.alltel.com" <%=array[0]%> >Alltel Wireless</option>
                    <option value="@txt.att.net" <%=array[1]%> >AT&amp;T Wireless</option>
                    <option value="@myboostmobile.com" <%=array[2]%> >Boost Mobile</option>
                    <option value="@sms.mycricket.com" <%=array[3]%> >Cricket</option>
                    <option value="@mymetropcs.com" <%=array[4]%> >Metro PCS</option>
                    <option value="@messaging.sprintpcs.com" <%=array[5]%> >Sprint (PCS)</option>
                    <option value="@page.nextel.com" <%=array[6]%> >Sprint (Nextel)</option>
                    <option value="@VTEXT.com" <%=array[7]%> >Straight Talk</option>
                    <option value="@tmomail.net" <%=array[8]%> >T-Mobile</option>
                    <option value="@email.uscc.net" <%=array[9]%> >U.S. Cellular</option>
                    <option value="@vtext.com" <%=array[10]%> >Verizon</option>
                    <option value="@vmobl.com" <%=array[11]%> >Virgin Mobile</option>
                </select>
            </div>
            <br>

            <% array[carrier] = ""; %>

            <% array[plant] = "selected"; %>
            <div>
                <label class="login">Plant Type:</label>
                <select name ="plantName">
                    <option value="tomato" <%=array[0]%> >Tomato</option>
                    <option value="pepper" <%=array[1]%> >Pepper</option>
                    <option value="basil" <%=array[2]%> >Basil</option>
                    <option value="rosemary" <%=array[3]%> >Rosemary</option>
                </select>
            </div>
            <br>
            <div id="input_login">
                <input type="submit" value="Submit"/>
            </div>
        </form>

</div>