Results 1 to 2 of 2

Thread: [HIGHLY AMUSING] Form, Split... etc

Threaded View

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    [HIGHLY AMUSING] Form, Split... etc

    OK DELETE THIS THREAD!! LOL
    Im embarrassed...
    i looked at this code for well over an hour.. thinking.. its right.. i dont get it...

    well it seems that "methond" is um.. kinda... SPELLED WRONG! sigh

    ------------------------------------------------------------

    ok, I have a very simple form

    Code:
    <form name=frmSwitch action="rss.php" methond="post">
    	<select name="rss" onchange="if(this.options[this.selectedIndex].value != -1){ frmSwitch.submit(); }">
    		<option value="-1">[Select Another Feed]</option>
    		<option value="-1">AppShopper---------</option>
    	  <option value="1:new:All New">&nbsp; &nbsp;AppShopper - All New</option>
    	  <option value="1:new&type=free:New Free">&nbsp; &nbsp;AppShopper - New Feee</option>
    	  <option value="1:updates:Updated">&nbsp; &nbsp;AppShopper - Updates</option>
    	  <option value="-1">PinchMedia---------</option>
    	  <option value="0:RecentlyAddedIphoneApplications:All New">&nbsp; &nbsp;PinchMedia - All New</option>
    	  <option value="0:RecentlyAddedFreeIphoneApplications:New Free">&nbsp; &nbsp;PinchMedia - New Free</option>
    	  <option value="0:RecentlyUpdatedIphoneApplications:Updated">&nbsp; &nbsp;PinchMedia - Updated</option>
    	</select>
    </form>

    but in my PHP it doesnt seem to work...

    Code:
    if (empty($_POST['rss'])) {
    	$f = 1;
    	$sec = 'new';
    	$t = 'All New';
    } else {
    	list($f,$sec,$t) = split(":",$_POST['rss'],3);
    }
    its ALWAYS the default????
    Last edited by Static; Aug 5th, 2009 at 11:55 AM.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width