Results 1 to 2 of 2

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

  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"

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Form, Split... etc

    Ooooh! No, don't delete.... keep it... immortalized for all time... muwhahahaha! Don't forget to mark the thread as resolved too.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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