Re: Waiting for localhost
| From: | Ethan Rosenberg | Date: | Sun, 08 Mar 2015 19:01:21 +0000 |
| Subject: | Re: Waiting for localhost | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-48971@lists.php.net to get a copy of this message | ||
On 03/08/2015 01:40 AM, Karl DeSaulniers wrote:
Ethan, Open a new window (window.open) inside itself (_self)? Try window.location for opening a url inside the same window. Use windlow.open to open a new window (ie: pop-up window). Also, I would take at least a month and learn basic html and javascript before proceeding. You're running into newbie problems that could be eradicated with 30days of training. If you're feeling really frisky, throw 30 more days on top for php. Just saying, if you want life to be easier.. :) Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Mar 8, 2015, at 12:29 AM, Ethan Rosenberg <erosenberg@hygeiabiomedical.com> wrote:Thank you. OK here is the code- <?php echo "Hello<br />"; ?> <script type="text/javascript"> <!-- window.location.assign("end.php") //-->\ </script> What works in the JavaScript call is window.location.assign Works perfectly --------- In the database program ... $sql7 = "select WeightFlag from Food where PLU = $upc"; //If WeightFlag is 1 //the item has to be weighed and HandleWeight should be called $result7 = mysqli_query($cxn, $sql7); $row7 = mysqli_fetch_row($result7); if($row7[0] == 1) { ?> <script type="text/javascript"> <!-- window.location.assign("HandleWeight.php") //-->\ </script> <?php } hangs "waiting for localhost" and the connection times out. TIA Ethanwindow.open("HandleWeight.php","_self")Karl -