Jump to content

newbie help on refreshing page after selection from dropdown


Recommended Posts

<?php echo $form['catcher_id']; //gives me the dropdown list
              $catcher_names =  explode(" ",$form['catcher_id']);          
              foreach($catcher_names as $val)
              {
                  if ($val == "zed-catcher") [color="Red"]//not doing if cos page not refreshed with newley selected value[/color]
                  {
                      echo $form['service_code']->renderLabel();
                      echo $form['service_code']->renderError();
                      echo $form['service_code'];
                  }
              }
          ?>

 

from what i know i have to refresh the page with the newley selected value and the check it...and how to go about this i need to use AJAX and or javascript 

 

i am reading up on it cos i am newbie at all of this...

 

anybody to help me start on this/point me in the right direction/ explain what needs to be done please??? i dont know where to begin

 

many thanks!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.