Problem in if(isset($_REQUEST['var'])

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harini0590
    New Member
    • Apr 2012
    • 19

    Problem in if(isset($_REQUEST['var'])

    I need to check which button lead me to this page.. so i use code as below..
    Code:
    if(isset($_REQUEST['but_event']))
    {
    	//Connected string month value to integer
    $month=$_REQUEST['cmbmonth'];
    $int_month=fun_month($month);
    $in_time=$_REQUEST['txtevent_start_from'];
    $in_ses=$_REQUEST['cmbevent_start_from'];
    $out_time=$_REQUEST['txtevent_end_at'];
    $out_ses=$_REQUEST['cmbevent_end_at'];
    }
    when the button is click it do not lead me to the page..

    the thing is it does not get into this code..

    but the above code is works well in past one month..

    but now it brings the problem to me..

    If u know give me the reason.
  • Claus Mygind
    Contributor
    • Mar 2008
    • 571

    #2
    If you are not getting to this page, then I would look at your "action=" on the html form you are submitting from.

    If you are using html <input type="button"> instead of <input type="submit">. Then I would look at the appropriate javaScript code to make sure the right page is being called.

    Verify what parameters you are sending?

    If the page is being called up and the "but_event" is not in the set of variables being transmitted, see if you changed the name or even the case of the variable like but_Event would fail

    Comment

    • hemaldazzle
      New Member
      • Jul 2012
      • 15

      #3
      in below check my code
      <input type="submit" value="" name="but_event ">

      Comment

      • Claus Mygind
        Contributor
        • Mar 2008
        • 571

        #4
        What is the "action=" attribute set to? The page you showed above?

        If so try adding

        echo $_REQUEST['but_event'];

        Comment

        • harini0590
          New Member
          • Apr 2012
          • 19

          #5
          Code:
          <form name="frm_event" action="eve_server.php" method="post" enctype="multipart/form-data">
          and for submit..

          Code:
          <input type="image" src="../forms/images/buttons/but1.jpg" name="but_event" id="but_event" value="SUBMIT" align="middle" size="8"/>

          Comment

          Working...