Jump to content

blumonde

New Members
  • Posts

    8
  • Joined

  • Last visited

blumonde's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Zane, My session variable is not working correctly in Drupal. I need to upgrade Drupal to the latest version. Thank you and sorry for my late response. Regards, Dominic
  2. Yes, $check php variable does have a value of 1 in it. I saw it while using Codelobster debugger. It is "checkacct" js variable that I don't know if it gets that same value or not. Too bad there is no debugger that can debug javascript at run time.
  3. Hello Zane, Thank you for your response. It's still no effect on the conditional statement. Maybe "var checkacct={$check};" didn't transfer the value? blumonde
  4. Hello Ch0cu3r, Thank you for your response. I call it via the submit button. The function did get called but the if statement was ignored. The reason I know this is that because I added an alert message to the function for testing and it did pop up. Regards, blumonde
  5. Hello, The if statement didn't run and the confirm box didn't popup. and I don't know how to fix this after hours of debugging. Below is my code and it is simple: (when I debugging it, the variable $check does have a value of 1 in it) <?php $check = 1; ?> echo "function checkB4SaveForm()"; echo "{"; echo " var checkacct=".$check.";"; echo " if (checkacct==1)"; echo " {"; echo " var show = confirm(\"This account exists! Would you like to view it?\");"; echo " if (show==true)"; echo " {"; echo " searchAndDeleteForm();"; echo " return false;"; // show the record and cancel save transaction echo " }"; echo " else"; echo " {"; echo " return false;"; // cancel save transaction echo " }"; echo " }"; echo "}"; // end function Thanks in advance. blumonde
  6. You are correct. I fixed my code and the problem is gone. I was mixing both html and php without using php echo statements and that messed up the php code embedded in html. I added "echo" to all the html stuff and it worked fine after that. The old way I used before did work for my other stuff but not in this case. Thanks for pointing that out, Psycho and thank you for your time helping me. Regards, blumonde
  7. Hello Psycho, I also tried this way before <?php echo $DateEnteredValue; ?> but it's till the same. The MAIN problem is that the string <?php echo $txtDateEnteredValue; ?>" displays on the webpage when loading it. My goal is how do I make it my html textbox "txtDateEnteredValue" to display the CONTENT of $DateEnteredValue only. Thank you, blumonde
  8. Hello, Html textbox's value filled with php syntax upon loading the page eventhough the extension of my file is ".php". Please help me out. Thanks in advance. For instance, <?php <form action="" method="post"> <table> <tr> <td><b>Date:</b></td><td align="middle"><input type="text" id="txtDateEntered" name="txtDateEntered" value="<?php if($DateEntered != "") {echo $DateEntered;} ?>" /></td> </tr> </table> </form> if($_SERVER['REQUEST_METHOD'] == 'GET') { $DateEntered = ""; } ?> When loading the page, it shows "<?php if($DateEntered != "") {echo $DateEntered;} ?>" in the date entered box. Where did I do wrong? Regards, blumonde
×
×
  • 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.