homepage Welcome to WebmasterWorld Guest from 54.204.168.212
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Code issue with a form in drop down options.
TheNCRef



 
Msg#: 4614858 posted 6:22 pm on Oct 5, 2013 (gmt 0)

Hey everyone.

I am stuck. I have a drop msg form. The first of the 5 options says Select ..... The second is blank to separate the options. The 3rd, 4th, and 5th are the 3 options in the list.

No matter what I do, when I choose the 3rd option, fill in the fields and hit the submit button, it goes back to the same page without generating the needed email. 4th and 5th options generate the email without an issue.

And when I rearrange the options in the code (make the 3rd option the 5th and move the others up) nothing changes. The third option still doesn't show but the 4th and 5th do.

FYI - I have changed the whole # sequence every time. It starts with 0,1,2,3,4

 

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4614858 posted 7:32 pm on Oct 5, 2013 (gmt 0)

Well, give us a hint. What's the current code?
No matter what I do

What are some things you've done?

:: insert quotation here from Ned Flanders's parents ::

TheNCRef



 
Msg#: 4614858 posted 7:56 pm on Oct 5, 2013 (gmt 0)

<div>
<form name="dropmsgform">
<span class="style41">Select your site:</span>
<br>
<select name="dropmsgoption" size="1" style="width:400" onChange="expandone()">
<option>Select a Site</option>
<option> </option>
<option>**</option>
<option>******</option>
<option>****</option>
</select>
<br>
<br>
<div id="dropmsg0" class="dropcontent"><!-- Blank to make lower the menu choices -->
<p>&nbsp;</p>
</div>
<div id="dropmsg1" class="dropcontent"><!-- Blank to make lower the menu choices -->
</div>
<div id="dropmsg2" class="dropcontent"><!-- -->
<form name="***" method="post" action="">
<table width="600px" cellpadding="2" cellspacing="2" border="0">
<tr>
<td width="5%">&nbsp;</td>
<td width="30%" align="center" class="style17"></td>
<td width="30%" align="center" class="style17">Last Name:</td>
<td width="30%" align="center" class="style17">First Name:</td>
<td width="5%">&nbsp;</td>
</tr>
<tr>
<td width="5%">&nbsp;</td>
<td width="30%" align="center"><input name="" type="text" id="" tabindex="1"></td>
<td width="30%" align="center"><input name="lastname" type="text" id="lastname" tabindex="2"></td>
<td width="30%" align="center"><input name="firstname" type="text" id="firstname" tabindex="3"></td>
<td width="5%">&nbsp;</td>
</tr>
<tr>
<td width="5%">&nbsp;</td>
<td width="30%" align="center" class="style17">Phone Number:</td>
<td width="30%" align="center" class="style17">Reason For Request:</td>
<td width="30%" align="center">&nbsp;</td>
<td width="5%">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="center"><input name="phonenumber" type="text" id="phonenumber" tabindex="4"></td>
<td align="center">
<span class="style17">
<select name="reason" id="reason" tabindex="5">
<option selected>Select One</option>
<option></option>
<option></option>
<option></option>
<option></option>
</select></span>
</td>
<td align="center">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="center" class="style17">Other Comments:</td>
<td align="center">&nbsp;</td>
<td align="center">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3" align="center"><input name="comments" type="text" id="comments" tabindex="6" size="90"></td>
<td>&nbsp;</td>
</tr>
</table>
<p align="center"><strong>Note</strong>: Please hours. </p>
<p align="center">.</p>
<p align="center"><input name="submit" type="submit" id="submit" tabindex="7" value="Submit" label="submit"></p>
<p align="center"><strong>A.</strong></p>
<p align="center"><strong>.</strong> </p>
</form>
</div>
<div id="dropmsg3" class="dropcontent"><!-- -->
<form name="" method="post" action="">
<table width="600px" cellpadding="2" cellspacing="2" border="0">
<tr>
<td width="5%">&nbsp;</td>
<td width="30%" align="center" class="style17"></td>
<td width="30%" align="center" class="style17">Last Name:</td>
<td width="30%" align="center" class="style17">First Name:</td>
<td width="5%">&nbsp;</td>
</tr>
<tr>
<td width="5%">&nbsp;</td>
<td width="30%" align="center"><input name="" type="text" id="" tabindex="1"></td>
<td width="30%" align="center"><input name="lastname" type="text" id="lastname" tabindex="2"></td>
<td width="30%" align="center"><input name="firstname" type="text" id="firstname" tabindex="3"></td>
<td width="5%">&nbsp;</td>
</tr>
<tr>
<td width="5%">&nbsp;</td>
<td width="30%" align="center" class="style17">Phone Number:</td>
<td width="30%" align="center" class="style17">Reason For Request:</td>
<td width="30%" align="center">&nbsp;</td>
<td width="5%">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="center"><input name="phonenumber" type="text" id="phonenumber" tabindex="4"></td>
<td align="center"><span class="style17">
<select name="reason" id="reason" tabindex="5">
<option selected></option>
<option></option>
<option></option>
<option></option>
<option></option>
</select>
</span> </td>
<td align="center">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="center" class="style17">Other Comments:</td>
<td align="center">&nbsp;</td>
<td align="center">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3" align="center"><input name="comments" type="text" id="comments" tabindex="6" size="90"></td>
<td>&nbsp;</td>
</tr>
</table>
<p align="center"><strong>Note</strong>: 24 hours. </p>
<p align="center">.</p>
<p align="center"><input name="submit" type="submit" id="submit" tabindex="7" value="Submit" label="submit"></p>
<p align="center"><strong>rise.</strong></p>
<p align="center"><strong>s.</strong> </p>
</form>
<p>&nbsp;</p>
</div>
<div id="dropmsg4" class="dropcontent"><!-- -->
<form name="" method="post" action="">
<table width="600px" cellpadding="2" cellspacing="2" border="0">
<tr>
<td width="5%">&nbsp;</td>
<td width="30%" align="center" class="style17">:</td>
<td width="30%" align="center" class="style17">Last Name:</td>
<td width="30%" align="center" class="style17">First Name:</td>
<td width="5%">&nbsp;</td>
</tr>
<tr>
<td width="5%">&nbsp;</td>
<td width="30%" align="center"><input name="" type="text" id="" tabindex="1"></td>
<td width="30%" align="center"><input name="lastname" type="text" id="lastname" tabindex="2"></td>
<td width="30%" align="center"><input name="firstname" type="text" id="firstname" tabindex="3"></td>
<td width="5%">&nbsp;</td>
</tr>
<tr>
<td width="5%">&nbsp;</td>
<td width="30%" align="center" class="style17">Phone Number:</td>
<td width="30%" align="center" class="style17">Reason For Request:</td>
<td width="30%" align="center">&nbsp;</td>
<td width="5%">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="center"><input name="phonenumber" type="text" id="phonenumber" tabindex="4"></td>
<td align="center"><span class="style17">
<select name="reason" id="reason" tabindex="5">
<option selected>Select </option>
<option></option>
<option></option>
<option></option>
<option></option>
</select>
</span> </td>
<td align="center">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="center" class="style17">Other Comments:</td>
<td align="center">&nbsp;</td>
<td align="center">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3" align="center"><input name="comments" type="text" id="comments" tabindex="6" size="90"></td>
<td>&nbsp;</td>
</tr>
</table>
<p align="center"><strong>Note</strong>:</p>
<p align="center">.</p>
<p align="center"><input name="submit" type="submit" id="submit" tabindex="7" value="Submit" label="submit"></p>
<p align="center"><strong>.</strong></p>
<p align="center"><strong>.</strong> </p>
</form>
<p>&nbsp;</p>
</div>
</blockquote>

DrDoc

WebmasterWorld Senior Member drdoc us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4614858 posted 3:31 pm on Oct 7, 2013 (gmt 0)

No matter what I do, when I choose the 3rd option, fill in the fields and hit the submit button, it goes back to the same page without generating the needed email. 4th and 5th options generate the email without an issue.


Sounds like a server-side issue to me ...

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4614858 posted 12:27 am on Oct 9, 2013 (gmt 0)

This is the point where I had to stumble away and apply cold compresses to my forehead:

<table width="600px" cellpadding="2" cellspacing="2" border="0">
<tr>
<td width="5%">&nbsp;</td>

Why isn't the table simply set to 540px wide in the first place if the first and last cells are always empty? Is there a background image involved? I suspect not, since this is very antiquated HTML with no CSS in sight. A CSS must exist, since some cells (though not the table itself) have a class name, but who knows what's in it. Seems as if it could all be expressed as something like

table.firstclass {width: 540px; border: none; border-collapse: separate; border-spacing: 2px; table-layout: fixed; margin: 1em auto;}
table.firstclass td {padding: 2px; width: 33%;}

assuming there's a reason for the border-spacing at all (as opposed to setting a cell padding of 3px and be done with it). Do the cells with a named class have visible borders or a different background?

The relationship of forms and tables seems a bit capricious overall. What does the validator say?

Yes, all right, that wasn't what you asked.

TheNCRef



 
Msg#: 4614858 posted 12:37 pm on Oct 9, 2013 (gmt 0)


Thank You Lucy. I have taken this site over from another individual. I took HTML in college literally 12 years ago so I am no longer fluent with it.

I am just trying to get the site to work for now. I am taking a Dreamweaver Class in the spring to make my life much easier.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved