On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi I’ve add a form as Snippet, it looks like this:

    <form id="form1" name="form1" method="get" action="[~[*id*]~]">
    
    <select name="catid" size="8">
    	<option value="1">categorie1</option>
    	<option value="2">categorie2</option>
    	<option value="3">categorie3</option>
    	<option value="4">categorie4</option>
     </select>
    
    <select name="blid" size="8">
    	<option value="1">bl1</option>
    	<option value="2">bl2</option>
    	<option value="3">bl2</option>
    	<option value="4">bl3</option>
     </select>
    
     <input type="submit" name="submit" value="submit" />
    


    the ID of my HTML file is 8 so my link looks like "http://127.0.0.1/modx/index.php?id=8"

    i want to get the Values of this form with
     $catid=$_GET['catid'];
    $blid=$_GET['blid'];"  


    but it doesnt works sad
    It should be like http://support.amd.com/DE/GPUDOWNLOAD/Pages/index.aspx

    Any ideas?
    Thanks smiley
    •  $catid=$_GET['catid'];
      $blid=$_GET['blid'];" 
      Do you have this in a snippet as well? And to make sure it is not getting cached data use the snippet uncached [! !] rather than [[ ]]
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
      • Thanks it was a great help!

        Quote from: dev_cw at Mar 17, 2009, 12:25 AM

         $catid=$_GET['catid'];
        $blid=$_GET['blid'];" 
        Do you have this in a snippet as well?

        Yes, it is in the same snippet.

        Quote from: dev_cw at Mar 17, 2009, 12:25 AM

        Do you have this in a snippet as well? And to make sure it is not getting cached data use the snippet uncached [! !] rather than [[ ]]
        it doesnt work with
        <form id="form1" name="form1" method="get" action="[~[*id*]~]">

        but if it is not cached i can add an hidden input field
         <input type="hidden" name="id" value="[*id*]" />


        so it works smiley

        Thanks again!