Search the Community
Showing results for tags 'php'.
-
I created a function that checks if a user exist in my data base: function UserExist($gid) { $query = SQLWrapper()->prepare("SELECT ID FROM Users WHERE gid = ?"); $query->execute([$gid]); $info = $query->fetch(); if(empty($info)) { return false; } else { return true; } } But it gives me this error: Uncaught Error: Call to a member function fetch() on bool Any ideas as to why?
-
I have a PHP file that has a button to updat the info in my database. Once the button is pressed it uses another PHP file to run the update in the database. I am trying to make it redirect me to a php file with a table containing the info in the database. This is what I have now. It just displays text saying that the update was successful. I would like it to redirect me to the PHP file containing the table. I would like to avoid using URL redirects. if($kobling->query($sql)) { echo "Update successful"; } else { echo "Something went wrong $sql ($kobling->error)."; }
-
How to stop website from loading in Andriod webView?
Guest posted a topic in Programs, Apps and Websites
Codes that i have access too: Javascript, Mysql, PHP, Html, css, and Xml. How do i stop my site (apache2) from loading within Android webView? (and Open within a Real Web browser) User ---> Webview --> Google chrome/Firefox/etc help? (reason for wanting no webView, I use a PHP redirect to Desktop or Mobile.)-
- php
- javascript
-
(and 1 more)
Tagged with:
-
Hi all, Just wondering would anyone know how to scrape the goal and currently raised of a GoFundMe page? Either with php or JQuery? Thanks.
-
I have used both Nextcloud and Owncloud and i seem to be coming into the same problems for both. After i configure Apache, PHP and MySQL i get brought to the web page where it should work. I watched many videos and read hundreds of articles online explaining different ways to set these up but they all keep giving me the same problems. i keep getting a bunch of gibberish when it should be asking for my login info. What i was using before was Freenas. I had the plugin for Nextcloud installed i had the jails configured correctly everything should have been working but it was bringing up the login page but it said that there was something wrong with MySQL an PHP setup. i scrapped that idea and now i tried installing Ubuntu 18.04 LTS terminal on my Windows 10 machine. I've tried changing which versions of PHP ans MySQL, i tried changing to a different version of owncloud from 10.0.4 to 10.0.10 but it keeps giving me the same problems. Im not super intelligent when it comes to Linux but every article has not worked for me. and i do not know why it is not working for me Any help would be amazing, Thanks.
-
Hey guys, I am trying to get my head around the Model View Controller structure for PHP. I keep hitting a wall when it comes to the cases and actions part of the php. So I have a index file with the following code: <?php include("Models/utilities.php"); include("Models/connectSalesRepDataBase.php"); $action = (isset($_REQUEST['action'])) ? $_REQUEST['action']:"firstPage"; switch (true) { case strpos($action,"SalesRepCases")===0: include("Models/salesRepCases.php"); break; default: echo "Unexpected action $action found.<br>"; break; } ?> and than I have a Case file name SalesRepCases.php with the following code: <?php switch($action) { case "firstPage": include ("Views/firstPage.php"); break; case "firstPageResults": includ ("Views/salesRepInfo.php"); break; default: echo "Action $action is not recognized"; break; } ?> Now with what was posted I keep thinking that the action on the index.php is firstPage. So in the cases file (salesRepCases.php) the case is "firstpage" and when that is the case it should show the file called "firstPage.php" . The code on the firstPage.php is the following: <?php include ("Views/header.php");?> <?php include("VIews/footer.php");?> I got noting in there other than my footer and header, but when I the site and I get the following message , " Unexpected action firstPage found." Shouldn't it be showing my FirstPage case file? Any help would be appreciated .
-
I am a student in college (not a very good one, thus why I'm here asking for help) and I will eventually be in classes where I will need VMware, but that is at least a couple of years out. Currently, I have no experience using virtual machines, but I'm in some development classes that I believe would be improved if I could host XAMPP locally in order to test my php/perl scripting without having to upload it to the student server (which is time consuming during scripting/debugging), so I've concluded that it would probably be best to set up virtual machine capabilities in order to install XAMPP (on Linux, in a VM). I don't have any experience doing any of this, but I think I can figure it out. What I'm wanting to know is which Virtual Machine software suite is most similar to VMware, but FREE, since I really need to learn VMware, but I can't afford it currently (even with the student discount). I don't want to learn a program that will make learning VMware more difficult due to the need to "unlearn" things that operate completely differently, so I'm trying to get whatever free VM software is the closest to VMware in usability/UI. What would serve my needs best? Virtual Box? Hyper-V? Something else? I'd like to stress that I have zero experience with any of this, and I'm just going by what I could find using google search. Am I over-complicating this? I tend to do that. To be clear: I'd like to be able to run php and perl locally on my PC (Windows 10, 64 bit) so that I do not have to upload my webpages that include server-side scripting to the server to see if they work because it is very time-consuming.
- 17 replies
-
- vmware
- virtualbox
-
(and 3 more)
Tagged with:
-
Hi, I'm trying to use my function but it returns null each time there is something wrong and I know it does it on this line if (!empty($_SESSION['errormsg'])) { return('null'); } Tho I know it's not empty because I have it echo the error message in the corner while working. If I add session_start(); on the start of the function script file this error comes up (and still returns null). line 14 is session_start(); Notice: A session had already been started - ignoring session_start() in *File* on line 14 What is this? and how do you fix this?
-
Sup guys, I got an assignment to do for school which concluded developing a webshop. I got the website with al the articles on it and I got the database (MYSQL). The only question now is how to connect those two. I really appreciate it. Greetz
-
Hi, trying to use curl to get a page and send headers, but it doesent work, tho I managed to get this file_get_content to work, but I want curl so it will be easyer to deal with errors. This is the file_get_contents $url = "someurl"; $options = array( 'http'=>array( 'method'=>"GET", 'header'=>"User-Agent: Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.102011-10-16 20:23:10\r\n" // i.e. An iPad ) ); $context = stream_context_create($options); $file = file_get_contents($url, false, $context); echo $file; and the cURL function curl_download($Url){ // is cURL installed yet? if (!function_exists('curl_init')){ die('Sorry cURL is not installed!'); } // OK cool - then let's create a new cURL resource handle $ch = curl_init(); // Now set some options (most are optional) // Set URL to download curl_setopt($ch, CURLOPT_URL, $Url); // User agent curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.102011-10-16 20:23:10"); // Include header in result? (0 = yes, 1 = no) curl_setopt($ch, CURLOPT_HEADER, 0); // Should cURL return or print out the data? (true = return, false = print) curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Timeout in seconds curl_setopt($ch, CURLOPT_TIMEOUT, 10); // Download the given URL, and return output $output = curl_exec($ch); if (!$output) { $output = 'Error'; } // Close the cURL resource, and free system resources curl_close($ch); return $output; } echo curl_download('someurl');
-
Hi. I want to know how those auto saving stuff works, etc some sites I go on and I change my "group" and when I press another thing in the list and refresh the page that thing is now saved in the database and I never hit a submit button on the form (not talking about using cookies to track preferences) So how is this normaly done? and is it a way to do it in jQuery?
-
Hey guys, Update for my school assignment. Everything is going to plan. I've connected the website with the database, but I got another question. <?php $db = mysqli_connect(localhost, root, usbw, webshop) or die('Error connecting to MySQL server.'); ?> <html> <body> <div id="Pizza1"> <div id="Header"> <h2>Macro lens</h2> </div> <?php <div id="Product"> <table> <tr> <td><img id ="lens" src="macrolens1.png"/></td> <td><img id ="lens" src="macrolens2.png"/></td> <td><img id ="lens" src="macrolens3.png"/></td> </tr> <tr> <td><p>AF-P DX NIKKOR 18-55MM F/3.5-5.6G <br> €209,00</p></td> <td><p>Canon EF 100mm f/2.8 Macro USM lens <br> €549,00</p></td> <td><p>FE 90 mm F2.8 Macro G OSS <br> €1200,00</p></td> </tr> <tr> <td><p> Merk: Nikon <br> Brandpuntsafstand: 18-55 mm <br> Filtermaat: 55 mm <br> Gewicht: 195 gram </p></td> <td><p> Merk: Canon<br> Brandpuntsafstand: 100 mm<br> Filtermaat: 58mm<br> Gewicht: Circa 305 gram </p></td> <td><p> Merk: Sony<br> Brandpuntsafstand: 90 mm<br> Filtermaat: 62 mm<br> Gewicht: 602 gram </p></td> </tr> </table> </div> ?> </body> </html> This is a part of my code, I know, its not perfect. I want the following thing happen when I clicked an image: When an image is clicked I want to have a piece of code that will add this product to the shopping-cart. I already have a database for the shopping-cart. Is it possible to fix this with a simple if statement? Or is there an other way to do this. I hope everything is clear. Greetz
-
Hi, I'm trying to create a simple rest api for my personal use (just so I can interact with my server and add functions over time) all I want is to be able to use the url methods of doing this, I don't know OOP PHP, so I would like to stay away from any framework until I know that. so I want to be able to interact with the api with mydomain.com/api/v1/{token}/stuff/{input} how is this done? I know how to use POST but I don't know if this stuff are alike or what nor how to configure the nginx / apache to work with that type of url. All help is appreciated.
-
Hi, I am just starting to learn PHP (after having done HTML, CSS, and JavaScript. I am currently hosting my own website which I am using to practice my coding. I cannot however, seem to get my website to display the PHP code e.g. echo commands do not output anything. Is there anything I can do to try and do to fix this? Here is my code: <!DOCTYPE html> <meta charset="utf-8"/> <html> <head> <link rel="stylesheet" href="css.css"> <script src="javascript.js"></script> </head> <body> <?php echo "Hello"; ?> </body> </html>
-
Hello, I was hoping someone could help me out as I am trying to figure something out. I have designed a system that allows users to upgrade their space that is hosted on a cpanel server. However, it only works with specified packages. I have been reading into the WHM API and can't seem to figure out how to accomplish this. Right now as it stands when a user wants to add more space they place the order and then it moves their account from a "free" package to "plus1gb" package. All of my accounts get 1GB free but have the option to add more space. The problem I'm running into is if a user upgrades to a "plus2gb" package they should have 3GB in total but say in the future they want to add 5 more GB. They would then get upgraded to the "plus5gb" rather than the "plus8gb" package. For some reason I cannot find a script that will all me go "packageless" in WHM and automate the process where it would be the same thing as me doing a manual modification of their assigned quota. Let me know if I'm not clear on anything. And thanks for your input
-
I am trying to add the string week after a variable but I keep getting this error when I run it. " Fatal error: Call to undefined function toString() " it tells me that is on line 48 on my code.''' I tried doing a timePeriod = $numEndDate.toString("weeks"); and I still get the error. ANY help would be appreciated. Thanks! <?php function refundDate($sampleDate,$numEndDate=NULL ) { $currentDate= new DateTime($sampleDate); if($numEndDate === "") { $currentDate->modify("+2 weeks"); } else { $timePeriod = $numEndDate ."weeks"; <----- thats what is giving me the error! $currentDate->modify($timePeriod); } return $currentDate; } ?>
-
Hi, I'm creating this offline key vault. I have made a encryption of the stored keys using the same key as the user, so in case the key is changed the stored keys are not compromised. But as of now the only way I see I can decrypt using the key is by matching the key to the hashed key in the database > now you are logged in and it then stores the key in plaintext in a session (I think this is unsafe but if I'm wrong let me know) and then it grabs that each time it decrypts the stored keys. How can I do this better (if there is)?
-
Hello, I'm having a issue with scraping and using PHP. some say I should use DOM but I'm not sure how to use it for this. First box is part of the page that I get, the other is my code to the 2,000,000 out of it, but it just returns the whole page. <tr style="background-color: #ffffff;"> <td style="text-align: left; border-right: 0px; border-top: 0px;"><span style="padding-left: 3px;">Bank:</span></td> <td style="text-align: left; border-left: 0px; border-top: 0px;"><span style="padding-left: 3px;">2,000,000 Dollar</span></td> </tr> $start_description1 = 'Bank:</span></td> <td style="text-align: left; border-left: 0px; border-top: 0px;"><span style="padding-left: 3px;">'; $end_description1 = ' Dollar</span></td> </tr>'; $description1_start_pos = strpos($temp, $start_description1) + strlen($start_description1); $description1_end_pos = strpos($temp, $end_description1) - $description1_start_pos; $description1 = substr($temp, $description1_start_pos, $description1_end_pos); print_r($description1);
-
I currently own a gaming server and I would like to build myself some protections. What I'm looking forward to do is quite simple. I am going to connect to my game server using the RCON protocol. I will then be able to see all events happening on this one. (I.E: Player "John" joined the server, Player "Mark" killed "Patrick" with "Hammer", ...). What I need to do is for every line that would pop-up, handle it and take proper actions depending on each of these lines. (If it is about a player that is joining the server, check if he is authorized (for example)). Most of my other scripts are already written in PHP. I'd like to do that in PHP as well! Is there any PHP functions that allows me to track these events? The only way I'm actually thinking of doing this is scanning every second the console and if a new line appears, analyze it and take action. Am I going the right way?
-
I have this PHP code runnung on a web server and it does send an email to me but it doesnt show the message, name, or email from the user. Here is the code. PHP: <?php // Grabbing data sent from the form and assigning it to variables $field_name = $_POST['name']; $field_email = $_POST['email']; $field_message = $_REQUEST['msg']; foreach($_POST['check'] as $value) { $check_boxes .= $value." "; } $radio_button = $_POST['cf_radio_button']; $drop_down_item = $_POST['cf_drop_down']; // Composing body of the message $mail_to = 'example@example.com'; $subject = 'Message from a site visitor '.$field_name; $body_message = 'From: '.$field_name."\n"; $body_message .= 'E-mail: '.$field_email."\n"; $body_message .= 'Message: '.$field_message."\n"; // Creating headers of the message $headers = 'From: '.$field_email."\r\n"; $headers .= 'Reply-To: '.$field_email."\r\n"; $mail_status = mail($mail_to, $subject, $body_message, $headers); if ($mail_status) { ?> <script language="javascript" type="text/javascript"> alert('Thank you for the message. We will contact you shortly.'); history.back(1); </script> <?php } else { ?> <script language="javascript" type="text/javascript"> alert('Message failed. Please, send an email to austingazur@yahoo.com'); history.back(1); </script> <?php } ?> HTML <footer id="footer"> <div class="inner"> <h2>Contact Me</h2> <form action="contact.php" method="post"> <div> <label for="name">Name:</label> <input type="text" id="name" name="user_name" /> </div> <div> <label for="mail">E-mail:</label> <input type="email" id="mail" name="user_mail" /> </div> <div> <label for="msg">Message:</label> <textarea id="msg" name="user_message"></textarea> </div> <div class="button"> <button type="submit">Send your message</button> </div> </form>
-
Hi, I'm trying to encrypt a password string (this is to be able to get the string back later and not login system) Tho My password string looks like this (it's generated) slUTz<37v?fi-;OkT?Xa~+p7v Tho then my aes string gets broken. etc with that string the aes is btMYYdjQlNpRpzxC1C0cvUy7q9RU14+ze7YhAPsMfNvRt4auOi2nVDyy9t/8tfNn well, this isent a AES string anymore (atleast nothing I can use) now lets use this for the string "Please work" MITcZ2dLKyKa5eD39Rg2YppxarWN+zilPN88SfVTQFw= Wait what? So whats happening here? I guess it's due to all the symboles in the first string. if thats the case how do I fix that?
-
So I'm trying to do this array but I have no clue on how it's done since I dident understand the documentation at all. What I want to do is have an array with 4 values, the last value is going to be another array. like this Name > A name, Link > A link, Icon > Icon-name, Trigger > (1,2,3,4) And I want to be able to store more of them in there. so I can do a foreach to get all the values out of it and make a row with it (gonna use this for a navigation bar). $menu = array( array('name' => 'Home', 'link' => '/', 'icon' => 'fa fa-home', 'trigger' => array('Home')), array('name' => 'Shop', 'link' => '/shop', 'icon' => 'fa fa-shopping-cart', 'trigger' => array('Shop','Shop - Products')) ); This is what I tryed, but I don't think it worked (or I'm doing it wrong)
-
Hi, I've noticed that I can encrypt with mysql tho I don't want to be sending the stuff thats going to be encrypted in to the mysql before encryption so it cannot be find in any logs. So I'm wondering how I can encrypt aes 128 / 256 bit in PHP. I have seen this AES-Rijndael tho That it's deprecated in php 7.1 and some say that it's not a compleat AES 256Bit encryption. So what should I use? I havent been able to find anything else than this aes-rijndael. Just becouse someone gonna say it, No I'm not going to use this for storing passwords. I need to store some sensetive information that I can get later.
-
Hello everyone, This is the first time that I am working with PHP and validating forms with PHP. I am trying to validate and format the following: restaurantName: Capitalize the first letter of the name. dinnerTab: auto format for 2 decimals. Where I am having issues is starting the validation with PHP. I have it so when the they press the button a second page is loaded showing the DATE, RESTAURANT NAME, DINNER TAB, TIP, and TOTAL. Any help would be appreciated! FIRST PAGE: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="author" content="Sergio Ochoa"> <meta name="description" content="Main Page, School"> <meta name="keywords" content="Sergio,ABoutMe"> <title>PayBack,Inc.</title> <script type="text/javascript" src="JS/weights.js"></script> <script type="text/javascript" src="JS/toTitleCase.js"></script> <script type="text/javascript" src="JS/IntegerKeyPress.js"></script> <script type="text/javascript" src="JS/FormatNumber.js"></script> <script type="text/javascript" src="JS/isDate.js"></script> <script type="text/javascript" src="JS/DateFormat.js"></script> <script type="text/javascript" src="JS/javaS.js"></script> <style type="text/css"> #header { text-align: center; } #main { clear: both; } form { clear: both; padding: 10px; min-width: 550px; } label { text-align: right; float: left; width: 12em; padding-right: .5em; vertical-align: top; } input, select, textarea, fieldset { margin-bottom: .5em; } .numberInputSyle { text-align: right; } body { background-color: wheat; } </style> </head> <body> <div id="header"> <img class="leftPicture" src="Images/Corgi.png" alt="Company logo" width="300" height="152" style="float:left" /> <img class="rightPicture" src="Images/Corgi.png" alt="Company logo" width="300" height="152" style="float:right" /> <h1>Payback,Inc.</h1> <h2>Dinner Reimbursement form</h2> </div> <div id="main"> <form id="frmWeight" method="post" action="results.php"> <label for='txtRestaurantName'>Restaurant Name:</label> <input type="text" name="restaurantName" id='txtRestaurantName'required> <br> <label for='dtbSampleDate'>Date:</label> <input type="date" name="sampleDate" id="dtbSampleDate" required> <br> <label for='txtDinnerTab'>Dinner Tab:</label> <input type='number' name='dinnerTab' id='txtDinnerTab' required> <br> <button type="submit" class="buttonStyle" id='btnSubmit' name="btnSubmit">Calculate Tip</button> <button type="reset" class="buttonStyle" id="btnReset" name="btnReset">Clear</button> </form> </div> </body> </html> SECOND PAGE: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="author" content="Sergio Ochoa"> <meta name="description" content="Main Page, School"> <meta name="keywords" content="Sergio,ABoutMe"> <title>Payback,Inc.</title> <style type="text/css"> #header { text-align: center; } #main { clear: both; } body { background-color: wheat; } </style> </head> <body> <div id="header"> <img class="leftPicture" src="Images/Corgi.png" alt="Company logo" width="300" height="152" style="float:left" /> <img class="rightPicture" src="Images/Corgi.png" alt="Company logo" width="300" height="152" style="float:right" /> <h1>Payback,Inc. </h1> <h2>Dinner Reimbursement form</h2> </div> <?php extract($_REQUEST); ?> <form method="post" action="nextPage.php"> <input type="hidden" name="sampleDate" value="<?php echo $sampleDate; ?>"> <!-- put a button here --> </form> <div id="main"> <?php $totalTip = $dinnerTab * .20; $totalBill= $totalTip + $dinnerTab; $refundDate = new DateTime($sampleDate); $refundDate->modify("+2 week"); ?> <p>Date: <?php echo $sampleDate;?> </p> <p>Restaurant Name: <?php echo $_REQUEST['restaurantName'];?> </p> <p>Dinner Tab: $<?php echo $dinnerTab;?> </p> <p>Tip: $<?php echo $totalTip;?></p> <p>Total: $<?php echo $totalBill;?></p> <br> <p>Be sure to submit for reimbursement by <strong><?php echo $refundDate->format('Y-m-d');?></strong></p> </div> </body> </html> Pages.zip
-
So I'm having issues with my form not containing anything when sent. Yes I do have names for them as you see. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>UBN - Signup</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.6 --> <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css"> <!-- Font Awesome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"> <!-- Theme style --> <link rel="stylesheet" href="/dist/css/AdminLTE.min.css"> <!-- iCheck --> <link rel="stylesheet" href="/plugins/iCheck/square/blue.css"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body class="hold-transition register-page"> <div class="register-box"> <div class="register-logo"> <a href="/"><b>Ubuntrix</b>Group</a> </div> <div class="register-box-body"> <p class="login-box-msg">Sign up</p> <form action="/errortest.php" method="POST"> <div class="form-group has-feedback"> <input type="text" class="form-control" name="uid" placeholder="username"/> <span class="glyphicon glyphicon-user form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input type="email" class="form-control" name="email" placeholder="Email"/> <span class="glyphicon glyphicon-envelope form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input type="password" class="form-control" name="pwd" placeholder="Password"/> <span class="glyphicon glyphicon-lock form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input type="password" class="form-control" name="rpwd" placeholder="Retype password"/> <span class="glyphicon glyphicon-lock form-control-feedback"></span> </div> <div class="form-group"> <select class="form-control" name="timezone"> <option disabled selected value=""> -- Timezone -- </option> <option value="-12.0">(GMT -12:00) Eniwetok, Kwajalein</option> <option value="-11.0">(GMT -11:00) Midway Island, Samoa</option> <option value="-10.0">(GMT -10:00) Hawaii</option> <option value="-9.0">(GMT -9:00) Alaska</option> <option value="-8.0">(GMT -8:00) Pacific Time (US & Canada)</option> <option value="-7.0">(GMT -7:00) Mountain Time (US & Canada)</option> <option value="-6.0">(GMT -6:00) Central Time (US & Canada), Mexico City</option> <option value="-5.0">(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima</option> <option value="-4.0">(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option> <option value="-3.5">(GMT -3:30) Newfoundland</option> <option value="-3.0">(GMT -3:00) Brazil, Buenos Aires, Georgetown</option> <option value="-2.0">(GMT -2:00) Mid-Atlantic</option> <option value="-1.0">(GMT -1:00) Azores, Cape Verde Islands</option> <option value="0.0">(GMT 0:00) Western Europe Time, London, Lisbon, Casablanca</option> <option value="1.0">(GMT +1:00) Amsterdam, Brussels, Copenhagen, Oslo, Roma</option> <option value="2.0">(GMT +2:00) Kaliningrad, South Africa</option> <option value="3.0">(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option> <option value="3.5">(GMT +3:30) Tehran</option> <option value="4.0">(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option> <option value="4.5">(GMT +4:30) Kabul</option> <option value="5.0">(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option> <option value="5.5">(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option> <option value="5.75">(GMT +5:45) Kathmandu</option> <option value="6.0">(GMT +6:00) Almaty, Dhaka, Colombo</option> <option value="7.0">(GMT +7:00) Bangkok, Hanoi, Jakarta</option> <option value="8.0">(GMT +8:00) Beijing, Perth, Singapore, Hong Kong</option> <option value="9.0">(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option> <option value="9.5">(GMT +9:30) Adelaide, Darwin</option> <option value="10.0">(GMT +10:00) Eastern Australia, Guam, Vladivostok</option> <option value="11.0">(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option> <option value="12.0">(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option> </select> </div> <div class="row"> <div class="col-xs-8"> <div class="checkbox icheck"> <label> <input type="checkbox" name="tos"> I agree to the <a href="terms.php">terms of use</a> </label> </div> </div> <!-- /.col --> <div class="col-xs-4"> <button type="submit" class="btn btn-primary btn-block btn-flat">Sign up</button> </div> <!-- /.col --> </div> </form> <a href="/login.php" class="text-center">I already have a membership</a> </div> <!-- /.form-box --> </div> <!-- /.register-box --> <!-- jQuery 2.2.3 --> <script src="../../plugins/jQuery/jquery-2.2.3.min.js"></script> <!-- Bootstrap 3.3.6 --> <script src="../../bootstrap/js/bootstrap.min.js"></script> <!-- iCheck --> <script src="../../plugins/iCheck/icheck.min.js"></script> <script> $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '20%' // optional }); }); </script> </body> </html> <?php session_start(); $path = $_SERVER['DOCUMENT_ROOT']; include $path.'/scripts/db_handler_script.php'; echo mysqli_real_escape_string($conn, $_POST['uid']); echo mysqli_real_escape_string($conn, $_POST['pwd']); echo mysqli_real_escape_string($conn, $_POST['rpwd']); echo mysqli_real_escape_string($conn, $_POST['email']); echo mysqli_real_escape_string($conn, $_POST['timezone']); ?>