lukeurtnowski
06-11-2005, 09:07 PM
im trying to run this code once the variable ADATE is set, why is this not working?
<?php
if (isset($_GET['ADATE'])) {
$result1 = mysql_fetch_array($query1);
?>
<SCRIPT TYPE="TEXT/JAVASCRIPT">
document.date.c_number.value = <?php echo $result1['C_NUMBER']; ?>
document.date.date.value = <?php echo $result1['A_DATE']; ?>
</SCRIPT>
<?php
}
?>
You can see it in action here (bottom form)
http://www.lukesplace.com/Padilla/createreport1.php
thanks for helping me. :thumbsup:
<?php
if (isset($_GET['ADATE'])) {
$result1 = mysql_fetch_array($query1);
?>
<SCRIPT TYPE="TEXT/JAVASCRIPT">
document.date.c_number.value = <?php echo $result1['C_NUMBER']; ?>
document.date.date.value = <?php echo $result1['A_DATE']; ?>
</SCRIPT>
<?php
}
?>
You can see it in action here (bottom form)
http://www.lukesplace.com/Padilla/createreport1.php
thanks for helping me. :thumbsup: