- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 7
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
30 Posted Topics
Re: Hi, I think that your script works but you should do tests in different machines to know if every time the ip adress has been blocked or not. | |
Re: Hi, I think that you forgot to verify fields and the captcha in **kontak_action.php** because even if I leave all fields blank and I click the submit button it shows me this message: step XWe've received your contact information. | |
Re: Hi, I think that th rewrite module is not active or not istalled in your server, to verify this do : <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^use-([0-9]+)\.html$ use.php?id=$1 [L] </IfModule> <IfModule !mod_rewrite.c> ErrorDocument 404 http://www.daniweb.com </IfModule> Here, the 1st if will check if the rewrite module exist and active and … | |
Re: Hi, if I understand your question, I think that's more easy to do like this : $result = mysql_query("SELECT * FROM users WHERE CallSign = '".$_POST['signin']."' and Password1 = '".$_POST['password']."'"); if(mysql_num_rows($result) > 0){ echo "<br>CallSign matches password"; setcookie("user", $_POST['signin']); }else{ echo "<br>Incorrect Password/Callsign"; } | |
Re: Hi, Try this : <?php $words = array('bold', 'old', 'board', 'gold', 'google', 'new', 'odlg'); $letter1 = $_POST['letter1']; $letter2 = $_POST['letter2']; $letter3 = $_POST['letter3']; $letter4 = $_POST['letter4']; for($i=0; $i<count($words); $i++){ $exist = 0; $word = $words[$i]; echo 'word : '.$word; if(strstr($word, $letter1)) $exist++; if(strstr($word, $letter2)) $exist++; if(strstr($word, $letter3)) $exist++; if(strstr($word, $letter4)) … | |
Re: Hi, Try this ( here we use the same page for the form and data processing : changepassword.php ) : <html> <head> <title>Change Password</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <?php if(isset($_POST['username']){ // we sent data $connection=mysql_connect('localhost','root','') or die (mysql_error()); $db=mysql_select_db('loginTut',$connection) or die (mysql_error()); $username = $_POST['username']; $password = … | |
Re: Hi, I think that you should add $filename = $_FILES['filename']['name']; after $query = <<<eof | |
Re: Hi, Try their installation guide : http://www.tomatocart.com/support/installation-and-upgrades/3-installation-and-upgrade/8-web-base-installation-procedure.html | |
Re: Hi, Try this : In your page that contain the form : <select name='color'> <option value="Type">Type</option> <option value="Red">Red</option> <option value="Green">Green</option> <option value="Gray">Gray</option> </select> In your php : // if your form method is post, use $_POST, if it's get, use $_GET if(isset($_POST['color'])) $searchBoxfruit = $_POST['color']; | |
Re: Hi, Try this : index.php : <?php include_once 'member.php'; // we include the member class $v = new member('bill'); // we create an instance of the member class // here we indicate the user name : bill // we can use $_REQUEST, $_POST, $_GET, $_SESSION, ... to get user name … | |
Re: Hi, This is the correct manner ( without **column** after **drop**): alter table <table_name> drop <col_name1>, <col_name2> | |
Re: Hi, No, you can not use double quotes while creating a table. Create a table : create table your_table ( id int(11) NOT NULL, name varchar(50) NOT NULL, PRIMARY KEY(id) ); Insert data into the table : insert into your_table(id, name) values(1, 'Bill'); insert into your_table(id, name) values(2, "Bill"); | |
Re: Hi, You can add a new field in your table that concatenate FirstName, LastName, DOB and Nationality and then you can do your request like this : SELECT COUNT(*) FROM users WHERE verif_field = data_to_verify | |
Re: Hi, Try this (simplified manner) : <form action="process.php" method="POST"> Username:<input type="text" name="user" maxlength="30" value="" />Password:<input type="password" name="pass" maxlength="30" value=""/>Register | Forgot password </form> | |
Re: Hi, 1- You can try PHPExcel here https://github.com/PHPOffice/PHPExcel or here http://phpexcel.codeplex.com/releases/view/88098. 2 - Or, you can convert your file to csv, xml or txt file and manipulate it more easily with PHP. | |
Re: Hi, 1 - If you are speaking about css and images of the email content that's of course normal if you dont use **absolute URLs**, images must be like : **http://www.site.com/img/banner.jpg** and not like the site pages where you can use **relative URLs** like **/img/banner.jpg**. 2 - The link that … | |
Re: Hi, I think that you dont need the while loop because an if is more than enough :) Try this : $query = mysql_query("SELECT bill_no, tag_no FROM tbl_cargo_details WHERE bill_no='$bill' or tag_no ='$bill'") or die(mysql_error()); $num_rows = mysql_num_rows($query); if($num_rows > 0){ // we are sure here that $bill == $row['bill_no'] … | |
Re: Hi, You can try these 2 freeware : 1 - Filezilla : http://filezilla.net/ 2 - WinSCP : http://winscp.net/eng/index.php | |
Re: Hi, In the window you're talking about, try to use the apply button to save the setting permanent. | |
Re: Hi, You should use the $_SESSION like this : session_start(); // initialisation, we must always use it with sessions $_SESSION['data'] = value; // put data to session $var = $_SESSION['data']; // get data from session In your case : <?php // attention here, we use 2 '=' ( == ) … | |
Re: Hi, Why you dont use an absolute adress ? like : URL : [http://your.site/ ]() Windows path : c:/work/sites/site01/ Linux path : /work/sites/site01/ ![]() | |
Re: Hi, In your html: <a href='send_email.php?email=contact@site.com'>Contact us</a> In your php (send_email.php) : <?php $email = $_GET['email']; // get the email address send_data_to_db(); // save data in db echo 'your text here !'; // echo text echo '<a href="mailto:'.$email.'"> Your text here to open the mailto link</a>'; // show a link … | |
Re: Hi, You can do like this : $query = "select name, phone from clients where id = 1"; $result = mysql_fetch_array(mysql_query($query)); function show_name(){ global $result; echo " client name : " . $result['name']; } function show_phone(){ global $result; echo " client phone : " . $result['phone']; } show_name(); show_phone(); | |
Re: Hi, I'v tested wamp with W8 Release Preview and when I tried open http://localhost/my_site I got 403 error but when I tried http://127.0.0.1/my_site, my site worked very nice. ![]() | |
Re: Hi, It's missing a **}** in the **line 78** after echo '<ul>' to close the **while** in line **29**. | |
Re: Hi, For better result use : $thispage = basename($_SERVER['PHP_SELF']); ![]() | |
Re: Hi, If the OS of your web server is a linux-based so it's normally that your 2nd url show a 404 error because urls are **Case Sensitive** in this type of os. | |
Re: Hi, I don't know if I understood your question but you can try this : <p style='width: 200px; padding: 0; line-height: 20px;'> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque nibh metus, sodales sed auctor et, euismod et mi. Maecenas elit eros, bibendum vel aliquet nec, aliquam et dui. … | |
Re: Hi, html code : <Form method="post" action="your_php.php"> Select a month : <Select name="month"> <Option value="1">Jan</option> <Option value="2">Feb</option> ... </Select> Select a day : <Select name="day"> <Option value="1">Mon</option> <Option value="2">Tue</option> ... </Select> </Form> PHP code (your_php.php) : $month = $_POST['month']; $day = $_POST['day']; | |
Re: Hi, 1 - In your html code you have used an input text named **find** and in your **search.php** page you work with **p**, so you should change the input text name to **p** if you want that **search.php** find your student. <form name="search" method="post" action="search.php"> Search for: <input type="text" … |
The End.