Panchami Panchami - 1 year ago 91
jQuery Question

setting a variable/ marker to use in a php function in the same php file

i want to set a marker like variable which will be set in a particular page and used for validation in common function. i tries $REQUEST. Its not working.. Any suggestion? also not able to read input hidden value..
in php section

<?php $GLOBALS['isRayaPromo'] = "rtrtr";
<div class="btn_photo_wrapper">
code here invoking above function

also tried with regular php variable. I am a beginner so plz suggest

Answer Source

You can use constants if value to be used is fixed like this.

define("isRayaPromo", "rtrtr");
<div class="btn_photo_wrapper">
  <?php echo isRayaPromo;?>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download