...

View Full Version : Every part of this form works perfect BUT THis... Wtf?



iceflyin
08-18-2007, 02:30 AM
I can't make heads or tails of this...

These post variables are not passing for some reason.


$sTime = $_POST[sMonth] . ", ". $_POST[sDay] ." at ". $_POST[sHour] . $_POST[sMinute] . $_POST[sampm];
echo $sTime;

The only post variable that echo's is sampm.


Heres the form. Note that EVERYTHING else works perfect. Just my time select boxes will not do anything...



<form enctype=multipart/form-data action=\"$eventCreateUrl\" method=\"post\">
<p><label for=\"name\">Event Name: </label> <input type=\"text\" name=\"name\" size=\"40\" maxlength=\"72\"/></p>
<p><label for=\"headline\">Headline: </label> <input type=\"text\" name=\"headline\" size=\"40\" maxlength=\"72\"/></p>
<p><label for=\"location\">Location: </label> <input type=\"text\" name=\"location\" size=\"20\" maxlength=\"72\"/></p>
<p><label for=\"address\">Address:</label> <input type=\"text\" name=\"address\" size=\"40\" maxlength=\"72\"/></p>
<p><label for=\"location\">Zip Code: </label><input type=\"text\" name=\"zip\" size=\"5\" maxlength=\"5\"/></p>
<p><label for=\"sMonth\">Start Time: </label>
<select name=\”sMonth\”>
<option value=\”1\”SELECTED>Jan</option>
<option value=\”2\”>Feb</option>
<option value=\”3\”>Mar</option>
<option value=\”4\”>Apr</option>
<option value=\”5\”>May</option>
<option value=\”6\”>Jun</option>
<option value=\”7\”>Jul</option>
<option value=\”8\”>Aug</option>
<option value=\”9\”>Sep</option>
<option value=\”10\”>Oct</option>
<option value=\”11\”>Nov</option>
<option value=\”12\”>Dec</option>
</select>
<select name=\”sDay\”>
<option value=\”1st\”SELECTED>1st</option>
<option value=\”2nd\”>2nd</option>
<option value=\”3rd\”>3rd</option>
<option value=\”4th\”>4th</option>
<option value=\”5th\”>5th</option>
<option value=\”6th\”>6th</option>
<option value=\”7th\”>7th</option>
<option value=\”8th\”>8th</option>
<option value=\”9th\”>9th</option>
<option value=\”10th\”>10th</option>
<option value=\”11th\”>11th</option>
<option value=\”12th\”>12th</option>
<option value=\”13th\”>13th</option>
<option value=\”14th\”>14th</option>
<option value=\”15th\”>15th</option>
<option value=\”16th\”>16th</option>
<option value=\”17th\”>17th</option>
<option value=\”18th\”>18th</option>
<option value=\”19th\”>19th</option>
<option value=\”20th\”>20th</option>
<option value=\”21st\”>21st</option>
<option value=\”22nd\”>22nd</option>
<option value=\”23rd\”>23rd</option>
<option value=\”24th\”>24th</option>
<option value=\”25th\”>25th</option>
<option value=\”26th\”>26th</option>
<option value=\”27th\”>27th</option>
<option value=\”28th\”>28th</option>
<option value=\”29th\”>29th</option>
<option value=\”30th\”>30th</option>
<option value=\”31st\”>31st</option>
</select><span> at </span><select name=\”sHour\”>
<option value=\”1\” SELECTED>1</option>
<option value=\”2\”>2</option>
<option value=\”3\”>3</option>
<option value=\”4\”>4</option>
<option value=\”5\”>5</option>
<option value=\”6\”>6</option>
<option value=\”7\”>7</option>
<option value=\”8\”>8</option>
<option value=\”9\”>9</option>
<option value=\”10\”>10</option>
<option value=\”11\”>11</option>
<option value=\”12\”>12</option>
</select><span>:</span><select name=\”sMinute\”>
<option value=\”00\” SELECTED>00</option>
<option value=\”05\”>05</option>
<option value=\”10\”>10</option>
<option value=\”15\”>15</option>
<option value=\”20\”>20</option>
<option value=\”25\”>25</option>
<option value=\”30\”>30</option>
<option value=\”35\”>35</option>
<option value=\”40\”>40</option>
<option value=\”45\”>45</option>
<option value=\”50\”>50</option>
<option value=\”55\”>55</option>
</select>
<select name=\"sampm\">
<option value=\"PM\" SELECTED>PM</option>
<option value=\"AM\">AM</option>
</select></p>
<p><label for=\"eMonth\">End Time: </label><select name=\”eMonth\”>
<option value=\”1\” SELECTED>Jan</option>
<option value=\”2\”>Feb</option>
<option value=\”3\”>Mar</option>
<option value=\”4\”>Apr</option>
<option value=\”5\”>May</option>
<option value=\”6\”>Jun</option>
<option value=\”7\”>Jul</option>
<option value=\”8\”>Aug</option>
<option value=\”9\”>Sep</option>
<option value=\”10\”>Oct</option>
<option value=\”11\”>Nov</option>
<option value=\”12\”>Dec</option>
</select>
<select name=\”eDay\”>
<option value=\”1st\” SELECTED>1st</option>
<option value=\”2nd\”>2nd</option>
<option value=\”3rd\”>3rd</option>
<option value=\”4th\”>4th</option>
<option value=\”5th\”>5th</option>
<option value=\”6th\”>6th</option>
<option value=\”7th\”>7th</option>
<option value=\”8th\”>8th</option>
<option value=\”9th\”>9th</option>
<option value=\”10th\”>10th</option>
<option value=\”11th\”>11th</option>
<option value=\”12th\”>12th</option>
<option value=\”13th\”>13th</option>
<option value=\”14th\”>14th</option>
<option value=\”15th\”>15th</option>
<option value=\”16th\”>16th</option>
<option value=\”17th\”>17th</option>
<option value=\”18th\”>18th</option>
<option value=\”19th\”>19th</option>
<option value=\”20th\”>20th</option>
<option value=\”21st\”>21st</option>
<option value=\”22nd\”>22nd</option>
<option value=\”23rd\”>23rd</option>
<option value=\”24th\”>24th</option>
<option value=\”25th\”>25th</option>
<option value=\”26th\”>26th</option>
<option value=\”27th\”>27th</option>
<option value=\”28th\”>28th</option>
<option value=\”29th\”>29th</option>
<option value=\”30th\”>30th</option>
<option value=\”31st\”>31st</option>
</select><span> at </span><select name=\”eHour\”><option value=\”1\”>1</option>
<option value=\”2\” SELECTED>2</option>
<option value=\”3\”>3</option>
<option value=\”4\”>4</option>
<option value=\”5\”>5</option>
<option value=\”6\”>6</option>
<option value=\”7\”>7</option>
<option value=\”8\”>8</option>
<option value=\”9\”>9</option>
<option value=\”10\”>10</option>
<option value=\”11\”>11</option>
<option value=\”12\”>12</option>
</select><span>:</span><select name=\”eMinute\”>
<option value=\”00\” SELECTED>00</option>
<option value=\”05\”>05</option>
<option value=\”10\”>10</option>
<option value=\”15\”>15</option>
<option value=\”20\”>20</option>
<option value=\”25\”>25</option>
<option value=\”30\”>30</option>
<option value=\”35\”>35</option>
<option value=\”40\”>40</option>
<option value=\”45\”>45</option>
<option value=\”50\”>50</option>
<option value=\”55\”>55</option>
</select>
<select name=\"eampm\">
<option value=\"AM\"SELECTED>AM</option>
<option value=\"PM\">PM</option>
</select></p>

kbluhm
08-18-2007, 02:50 AM
Use real double-quotes, not this ” stuff.

The only form field using actual double-quotes is sampm, and the only field passing correctly is sampm.

Hmmm...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum