[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

PHP Form Not Working

Asked by jsuissa in PHP Scripting Language, PHP and Databases

Tags: PHP

Hello,

We now have only one e-mail PHP based form on our site that is not currently working. It contains two forms and we also will post the e-mail script that is working for every other page on our site.

I have attached the entire form below.

Thanks in advance for any help that can be provided.

Best,

Justin
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
<?php
include 'config.php';
include 'opendb.php';
$groupstop  = "SELECT id, groupname, status FROM groups WHERE status = 1 ORDER BY groupname ASC";
$resulttop = mysql_query($groupstop);
$groups  = "SELECT id, groupname, status FROM groups WHERE status = 1 ORDER BY groupname ASC";
$result1 = mysql_query($groups);
$industries  = "SELECT id, name, short, status FROM industries WHERE status = 1";
$result2 = mysql_query($industries);
$locations  = "SELECT id, city, state, status FROM locations WHERE status = 1";
$result3 = mysql_query($locations);
$industries1  = "SELECT id, name, short FROM industries WHERE status = 1";
$result4 = mysql_query($industries1);
$groupsside  = "SELECT id, groupname, status FROM groups WHERE status = 1 ORDER BY groupname ASC";
$result5 = mysql_query($groupsside);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>The Abacus Group &#150; Submit A Position</title>
<!-- <script src="rollovers.js" type="text/javascript"></script> -->
<link rel="stylesheet" href="main.css" type="text/css">
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
<script src="SpryAssets/SpryValidationCheckbox.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationCheckbox.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script> 
<link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
</head>
<body>
 
<!-- START of DIV wrapper to center the whole page -->
 
	<div id="wrapper">  
 
	<!-- START of MainTable, this table holds the drop shadows for the outside of the page -->
 
	<table id="maintable">
	<tr>
		<td class="top" colspan="3"><img src="images/shadow_top.jpg" width="811" height="5" alt=""></td>
	</tr>
	<tr>
		<td class="sideleft"><img src="images/spacer.gif" width="5" height="1" alt=""></td>
		<td class="content">
	<!-- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -->
	<!-- START of HEADER TABLE -->
	<!-- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -->
	<table id="headertable">
	<tr>
		<td class="left"><img src="images/logo.jpg" width="580" height="66" alt="Abacus Group Logo"></td>
		<td class="right"><form action="positions.php" method="POST" name="form1"><img src="images/spacer.gif" width="1" height="20" alt=""><br />SEARCH JOBS<br /><img src="images/spacer.gif" width="1" height="3" alt=""><br />
						<select name="top_position_group" class="topsearch">
						<option value="" selected>Select a position group</option>";
					<?php
					while($row = mysql_fetch_array($resulttop))	{
						echo"<option value=\"$row[id]\">$row[groupname]</option>";
						}  ?>
						</select><input type=image align=middle SRC="images/go.gif"><br />&nbsp;<br />
						<a href="submit_position.php" class="topright">SUBMIT POSITION</a>&nbsp;&nbsp;<a href="submit_resume.php" class="topright">SUBMIT RESUME</a></form></td>
	</tr>
	</table>
	<table id="navtable">
	<tr>
		<td class="top"><img src="images/spacer.gif" width="1" height="1" alt=""></td>
	</tr>
	<tr>
		<td class="mid"><a href="index.php"><img src="images/nav/nav_01.jpg" width="93" height="33" border="0" alt="Home"></a><a href="about.php"><img src="images/nav/nav_02.jpg" width="114" height="33" border="0" alt="About Us"></a><a href="employers.php"><img src="images/nav/nav_03.jpg" width="124" height="33" border="0" alt="Employers"></a><a href="candidates.php"><img src="images/nav/nav_04.jpg" width="131" height="33" border="0" alt="candidates"></a><a href="positions.php"><img src="images/nav/nav_05.jpg" width="195" height="33" border="0" alt="Current Positions"></a><a href="contact.php"><img src="images/nav/nav_06.jpg" width="144" height="33" border="0" alt="Contact Us"></a></td>
	</tr>
	<tr>
		<td class="bottom"><img src="images/spacer.gif" width="1" height="3" alt=""></td>
	</tr>
	</table>
	<table id="bannertable">
	<tr>
		<td class="top"><img src="images/submit/submit_pic.jpg" width="801" height="90" alt="Submit Pic"></td>
	</tr>
	<tr>
		<td class="mid"><img src="images/submit/submit_title.jpg" width="801" height="34" alt="Submit Title"></td>
	</tr>
	<tr>	
		<td class="bottom" height="107" style="background: url(images/submit/submit_desc_bg.jpg);"><p>Contact the Abacus Group to learn more about  our<br>
		  custom staffing solutions.</p></td>
	</tr>
	</table>
	<!-- START of the main CONTENT TABLE, this table holds the smaller tables that make up the main content window -->
	<table id="contenttable">
	<tr>
		<!-- START the LEFT content the td holds all the stuff in the left column -->
		<td class="left">
			<div> <!--  DIV tag For IE to center the TD Cell --->
			<!-- This table is a smaller table used to hold the boxed info for this column in here are the drop shaddows for this box -->
			<table id="smalllefttable">
			<tr>
				<td class="top" colspan="3"><img src="images/employers/talk_to_sm.jpg" width="211" height="27" alt="Talk To A Representative"></td>
			</tr>
			<tr>
				<td class="leftshadow"></td>
				<td class="content">
					<!-- This is the content inside of the shadowed smaller box -->
					<form action="confirmationt.php" method="POST" class="employers">
					Fill out the form to have a representative from the Abacus Group contact you to discuss your staffing needs.<br />
					&nbsp;<br />
					Tell us about your company.<br />
					Contact Name <span id="sprytextfield1">
					<input type="text" name="name" maxlength="50" value="" style="width: 95px;" class="employers">
					<span class="textfieldRequiredMsg">Contact Name is required.</span></span><br />
					Company <span id="sprytextfield2"><input type="text" name="company" maxlength="50" value="" style="width: 121px;" class="employers">
					<span class="textfieldRequiredMsg">Company is required.</span></span><br />
					Phone <span id="sprytextfield3"><input type="text" name="phone" maxlength="50" value="" style="width: 142px;" class="employers">
					<span class="textfieldRequiredMsg">Phone Number is required.</span></span>
					Email <span id="sprytextfield4"><input type="text" name="email" maxlength="50" value="" style="width: 142px; margin-bottom:10px;" class="employers">
                    <span class="textfieldRequiredMsg">Email is required.</span><span class="textfieldInvalidFormatMsg">Invalid Email format.</span></span><br />
					What position do you need filled&#63;<br />
					<span id="ValidCheckbox1">
					<input type="checkbox" name="permanent" value="permanent"> Permanent<input type="checkbox" name="temporary" value="temporary"> Temporary
					<span class="checkboxRequiredMsg">Please check at least 1.</span></span><br />
						
						<img src="images/spacer.gif" width="1" height="10" alt=""><br />
						<span id="spryselect1" class="selectRequiredValue"><select name="position_group" style="width:175px;" class="employers">
						<option value="-1" selected>Select a position group</option>
						<option value="not listed" >Position Not Listed</option>
									<?php
									while($row = mysql_fetch_array($result1))	{
									echo"<option value=\"$row[groupname]\">$row[groupname]</option>";
									}  ?>
						</select><br><span class="selectInvalidMsg">Please select a Group.</span></span><br />
						<img src="images/spacer.gif" width="1" height="15" alt=""><input type="hidden" name="submit" value="1"><br />
						<p class="submitleft">
						<input type="image" src="images/employers/submit.jpg" class="submit">
						</p>
					</form>
					<!-- End of this smallbox content -->				</td>
				<td class="rightshadow"></td>
			</tr>
			<tr>
				<td class="bottomshadow" colspan="3"><img src="images/leftbox_bottomshadow.gif" width="211" height="8" alt=""></td>
			</tr>
			</table>
			<!-- End of this smallbox -->		
		</div>
		</td>
		<!-- START of the content that goes on the RIGHT side of the main content window -->
		<td class="right">
		<div> <!--  DIV tag For IE to center the TD Cell --->
			<table id="submitpositionbox">
			<tr>
				<td class="top" colspan="3"><img src="images/submit/submit_a.jpg" width="342" height="27" alt="Submit A Position"></td>
			</tr>
			<tr>
				<td class="leftshadow"></td>
				<td class="content" >
					<form action="confirmationt.php" method="POST" enctype="multipart/form-data" class="position">
					Fill out the form below to submit a position you are looking to fill.<br />
					&nbsp;<br />
					Tell us about your company.<br />
					Contact Name <span id="sprytextfield5">
					<input type="text" name="contactname" maxlength="50" value="" style="width: 180px;" class="position">
					<span class="textfieldRequiredMsg">Contact Name is required.</span></span><br />
					Company <span id="sprytextfield6">
					<input type="text" name="companyname" maxlength="50" value="" style="width: 174px;" class="position">
					<span class="textfieldRequiredMsg">Company is required.</span></span><br />
					Phone <span id="sprytextfield7"><input type="text" name="phone1" maxlength="50" value="" style="width: 227px;" class="position">
					<span class="textfieldRequiredMsg">Phone Number is required.</span></span><br />
					Email&nbsp;<span id="sprytextfield8">
                    <input name="email1" type="text" class="position" id="email1" style="width: 227px; margin-bottom:10px;" value="" maxlength="50">
                    <span class="textfieldRequiredMsg">Email is required.</span><span class="textfieldInvalidFormatMsg">Invalid Email format.</span></span><br />
					<img src="images/spacer.gif" width="1" height="10" alt=""><br />
					Tell us about the position.<br />
					<img src="images/spacer.gif" width="1" height="2" alt=""><br />
					<span id="ValidCheckbox2">
					<input type="checkbox" name="permanent" value="permanent"> Permanent&nbsp;&nbsp;&nbsp;<input type="checkbox" name="temporary" value="temporary"> Temporary<br>
					<span class="checkboxRequiredMsg">Please check at least 1.</span></span><br />
					<img src="images/spacer.gif" width="1" height="5" alt=""><br />
					<span id="spryselect2" class="selectRequiredValue"><select name="industry" style="width:245px;" class="position">
						<option value="-1" selected >Select an position group</option>
						<option value="not listed" >Position Not Listed</option>
									<?php
									while($row = mysql_fetch_array($result5))	{
									echo"<option value=\"$row[groupname]\">$row[groupname]</option>";
									}  ?>
						</select><span class="selectInvalidMsg"><br>Please select a Group.</span></span><br /><img src="images/spacer.gif" width="1" height="10" alt=""><br />
					Position Title <span id="sprytextfield9"><input type="text" name="position_title" maxlength="50" value="" style="width: 190px;" class="position">
					<span class="textfieldRequiredMsg">Position Title is required.</span></span><br />
					Salary Range <span id="sprytextfield10"><input type="text" name="salary_range" maxlength="50" value="" style="width: 185px;" class="position">
					<span class="textfieldRequiredMsg">Salary Range is required.</span></span><br />
					<img src="images/spacer.gif" width="1" height="2" alt=""><br />
					Upload job description in a text file, OR copy<br />and paste it into the text box below.<br /><input type="file" name="file1" id="file1" value="" style="width: 265px;" class="position" /><br />
					<img src="images/spacer.gif" width="1" height="10" alt=""><br />
					Describe the position.
						<textarea name="describe_position" style="width:270px; height:100px;" class="position"></textarea>
						<img src="images/spacer.gif" width="1" height="10" alt=""><input type="hidden" name="submitposition" value="1"><br />
						<p class="submitright">
						<input type=image src="images/contact/submit.jpg" border="0" >
						</p>
					</form>
				</td>
				<td class="rightshadow"></td>
			</tr>
			<tr>
				<td class="bottomshadow" colspan="3"><img src="images/leftbox_bottomshadow.gif" width="342" height="8" alt=""></td>
			</tr>
			</table>
			</div>
		</td>
		<!-- End of the LEFT side content -->
	</tr>	
	</table>
	<!-- End of the CONTENT TABLE -->
	<br />
	<!-- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -->
	<!-- START of FOOTER TABLE -->
	<!-- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -->
	<table id="footertable">
	<tr>
		<td class="top" colspan="2"><img src="images/count_on_us.jpg" width="79" height="13" alt="count on us"></td>
	</tr>
	<tr>
		<td class="mid" colspan="2"><hr></td>
	</tr>
	<tr>	
		<td class="bottomleft"><img src="images/spacer.gif" width="1" height="1" alt=""><br /><a href="privacy.html" class="footer">privacy policy</a><img src="images/dots.gif" width="23" height="18" alt="dots" align="middle"><a href="sitemap.html" class="footer">site map</a></td>
		<td class="bottomright"><p>14 penn plaza, suite 1600, new york, new york 10122<br />
		<b><i>telephone</i></b> 212.812.8444 &#149; <b><i>fax</i></b> 212.812.8448 &#149; <a href="mailto:info@abacusnyc.com" class="email">info@abacusnyc.com</a></p></td>
	</tr>
	</table>
	<!-- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -->
	<!-- END of CONTENT TABLE -->
	<!-- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ -->
 
	<br />
	</td>
	<td class="sideright"></td>
	</tr>
	<tr>
		<td class="top" colspan="3"><img src="images/shadow_bottom.jpg" width="811" height="5" alt=""></td>
	</tr>
	</table>
	<!-- END of MAIN TABLE -->
	</div>
	<!-- END of DIV for wrapper -->	
 
 
    <script type="text/javascript">
<!--
 
var ValidCheckbox1 = new Spry.Widget.ValidationCheckbox("ValidCheckbox1", {minSelections:1});
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "phone_number");
var phone = new Spry.Widget.ValidationTextField("phone", "phone_number", {validateOn:["submit"], useCharacterMasking:true});
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "email");
var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {invalidValue:"-1"});
 
var ValidCheckbox2 = new Spry.Widget.ValidationCheckbox("ValidCheckbox2", {minSelections:1});
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7", "phone_number");
var phone1 = new Spry.Widget.ValidationTextField("phone1", "phone_number", {validateOn:["submit"], useCharacterMasking:true});
var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8", "email");
var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {invalidValue:"-1"});
var sprytextfield9 = new Spry.Widget.ValidationTextField("sprytextfield9");
var sprytextfield10 = new Spry.Widget.ValidationTextField("sprytextfield10");
var sprytextfield11 = new Spry.Widget.ValidationTextField("sprytextfield11");
 
//-->
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5821975-1");
pageTracker._trackPageview();
</script></BODY>
</HTML>
<?php
include 'closedb.php';
?>
[+][-]02/20/09 05:35 AM, ID: 23691615Accepted Solution

Your question has an Asker Certified™ answer! jsuissa verified that this solution worked for them--which means it will likely work for you, too. Click to view the solution free for 30-days now.

About this solution

Zones: PHP Scripting Language, PHP and Databases
Tags: PHP
Sign Up Now!
Solution Provided By: jsuissa
Participating Experts: 2
Solution Grade: A
 
[+][-]11/05/08 09:37 AM, ID: 22887744Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/08 09:40 AM, ID: 22887787Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/08 09:41 AM, ID: 22887805Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/08 09:53 AM, ID: 22887944Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/08 12:10 PM, ID: 22889231Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/08 01:02 PM, ID: 22889882Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20100215-EE-VQP-121 - Hierarchy / EE_QW_2_20070628