39,323 Topics
| |
I need to create a form where you have two possible finishing pages dependent on the answers you give in the form. For instance if you have the question: Do you like sweets? And have the two possible outcomes Yes or No The answer yes takes you to a yesilikesweets.php … | |
hi, i want to load data after loading related php page. i used ajax and even jquery. jquery was not sure this is jquery code [CODE]$.post('<?php bloginfo('template_url'); ?>/bk_page/schedule_check.php', "", function(data) { $("#fieldsetConfirm").html(data);}) [/CODE] but this and when i was using ajax it changes data, but unfortunately, the pay now button … | |
Hi, WebForums I'm doing a login system, and it's working, but i'm having difficults in understand where does the "logout" go, other thing is that i want to improve the validation system - if someone could give me some tips. Here are the codes i'm using login form, "index.php": [CODE] … | |
Hi, I have one csv file with same order id for 4 or 5 times. How to know that order id is 4 or five times. My problem is on the basis of order id i will get the Product name and i want to generate the invoice. If the … | |
I am working for a sms portal where user will submit an sms template for admin will approve that template. user will submit like [CODE]my name is # i leave in #[/CODE] Admin will approve this sms template when user will sent this sms he can replace one word with … | |
Hey, I'm currently using mysql_real_escape_string() to protect against SQL injection. Is there a way to exploit this? I have already tried \ to try to make the query \', thus making it just a regular backslash. I have heard of the Big5 exploit, but I don't know how to use … | |
hi, I am getting this error: Parse error: syntax error, [B]unexpected T_STRING in C:\xampp\htdocs\makedatabase.php[/B] on line 2 here is the code: <?php CREATE USER("jeffrey"@"localhost", IDENTIFIED BY "mypass"); $con = mysql_connect("localhost" ,"jeffrey","mypass"); if (!$con) { die('Could not connect: ' . mysql_error()); } if (mysql_query("CREATE DATABASE my_db",$con)) { echo "Database created"; } … | |
Hi everyone, I've created a function for calling .js files in <head> but it's not working properly. The reason why is this function necessary is that I want to include different .js files in different pages or remove some If I don't need them. [CODE]function get_scripts($array, $dir) { $count = … | |
can any body tell me how to use the information of page [URL="https://sandbox.clickbank.com/rest/1.2/sandbox"]https://sandbox.clickbank.com/rest/1.2/sandbox[/URL]. | |
Hi I want to echo the output of query in php $query = "SELECT COUNT(name) FROM ji where name="rahul" and age='23' "; Can anyone plz help? | |
Hi, I have want to insert session variable in my database. I have developed a blog and I want to insert session variable in one of the fields defined in my database. I have the code which can insert other fields in the database but I do not know how … | |
Hi all While i am getting my data from gmail throws some error... Can anybody help me to fix the issue:fopen(path/file name)[function.fopen]:failed to open stream: No such file or directory in path on line xx Unable to open file Thanks:icon_smile: | |
So far, I have managed to create a register, login and welcome page with PHP. I'm now focusing on a creating a profile page. I'm wondering, first of all, how I can have every page on my site display "Welcome, " .$username. Do I have to insert a cookie write … | |
product_edit.php [CODE] // SETELAH TOMBOL SIMPAN DI TEKAN if (isset($_POST['save'])){ $tgl_masuk = date("y-m-j"); if (empty($_POST['id'])){ $result = mysql_query("INSERT INTO produk(nama_produk, harga, deskripsi, tgl_masuk, gambar) VALUES('".$nama."','".$harga."','".$deskripsi."','".$tgl_masuk."','".$gambar."')"); echo "Data has been recorded in the database."; } else{ $result = mysql_query("UPDATE produk SET nama_produk='".$nama_produk."', harga='".$harga."', deskripsi='".$deskripsi."', gambar='".$gambar."' WHERE id=".$_POST['id']); $result = mysql_query($sqlstr) or … | |
hi, this is relating to a wordpress site, i have this query [CODE]$qstring="SELECT * FROM rwb_bk_schedule s INNER JOIN rwb_bk_rooms r ON s.room_id = r.room_id WHERE s.room_status=1 AND r.room_name='".$room."' AND start_date BETWEEN '".$sdate."' AND '".$edate."' OR end_date BETWEEN '".$sdate."' AND '".$edate."'";[/CODE] as i given the code i use OR there … | |
I'm trying to send a confirmation email to the person who submitted this "ticket" but it's not sending. I know the right info is there it just seems like I'm putting something in the wrong spot. Anyone help me out? [CODE]<?php include("database.php"); $today = date("M d Y"); $sql="INSERT INTO info … | |
Hey guys, I'm working on a ajax drop down system. I'm currently finding myself in a difficulty with a $_POST[]. The thing is that I want to explode my $_POST but it doesn't let me for something, cant find it out why. [CODE] case 2: if(strstr($_POST['modelBox'],'^')) { $ex = $_POST['modelBox']; … | |
The first version was not working.. I made this simpler one, but it is not working either. It says the username or password are wrong. I also verified that it counts 0 rows with if($count==1). I am using WAMP. Thanks so much for any help. Oh and I got the … | |
Hi, I am having a problem with 404 page.I have handled it through .htaccess and it is working fine as it redirects the page fine.But it is giving me error in my error log that file not found xxx/xxx/xxx/forums.Although I have handled 404 problem and it is working fine.But in … | |
[CODE]<?php require('class.phpmailer.php'); $mail=new PHPMailer(); $mail->isSMTP(); $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->Port=465; $mail->Host="ssl//smtp.gmail.com"; $mail->Host = "ssl://smtp.gmail.com"; $i=0; if(isset($_POST['submit'])) { $mail->Username=check($_POST['UserName'],"user id required"); if(filter_var($_POST['UserName'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $mail->Username=$_POST['UserName']; $mail->Password=check($_POST['pass'],"password required"); $con=check($_POST['conpass'],"confirm password required"); if($con!=$mail->Password) show_error("Passwords do not match"); $mail->FromName=check($_POST['name']); $_POST['rec']=check($_POST['rec'],"recipient required"); if(filter_var($_POST['rec'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $_POST['recn']=check($_POST['recn']); $mail->AddAddress($_POST['rec'],$_POST['recn']); $mail->Subject=$_POST['sub']; $mail->Body =$_POST['body'];$i=0; if … | |
Ok I have hit my next hurdle. I have though of a few ways this could be done but just cannot wrap my head around it. What I would like to do is as I am accepting membership and move the member to the members database they will be given … | |
Hello, I'm looking to create a disclaimer page as a precedent to viewing an exercise video. I'm currently using a standard text field (for initials) and check box (to agree). There's no problem with that. I know I can just put the form submit to open a new page, but … | |
Hi, I'm having a trouble with dynamic redirection. I've searched for everything and did $_GET and $_POST but still not working. The $id is not returning any results. Here's my code: include_once("includes/connection.php"); global $result; putenv("TZ=Asia/Manila"); $arrErrors = array(); $oid = isset($_GET['oid']) ? intval($_GET['oid']) : 0; $package_id = isset($_GET['package_id']) ? intval($_GET['package_id']) … | |
hi , this is my code. i want to return data using a php page after processing a query within it. [CODE]$.post('check_booked.php', { room:roomv, srtdate:sdatev, eddate:sdatev}, function(data){ alert( data); });[/CODE] before completing php page i test using online code which returned nothing.. i don't know what wrong, as i have … | |
Hi Geeks, Here is code below, I wrote for multi file upload. This form takes a numeric value from previous page and print required form fields on this page. But when I write php code for upload it gives me errors. I use print_r($_FILES); but it returns an empty array(). … | |
I want this two echo's to stay in one line. One in center and another right like I did but not in new line echo "<a href=\"http://zafakultet.herobo.com\logout.php\"><font size=+1</font>Click here to logout!</a>"; echo "<p align=right>Username: " . $_SESSION["valid_user"]; I tried with <? ?> and it wont work. Thanks for help. | |
Please help me check my code especially change_form.php here's my code update_form.php [CODE] <?php $con = mysql_connect("localhost","root",""); mysql_select_db("exercise",$con); $query = mysql_query("select * from test_mysql",$con); $num = mysql_num_rows($query); echo "<center>Show database data</center>"; echo "<br>"; echo "Database data : $num"; while($num =mysql_fetch_array($query)) { echo "<br>"; echo $num[0]; echo "<br>"; echo "Name : … | |
Hi I have made a code in php, 1) Now the action is on the click of submit button, can i submit it using the keyboard input enter. <td><input type="submit" value="LOAD NEXT AND SAVE" name="loadnextsave"/></td> 2) To open a new page can i use the keyboard shortcut key instead of … | |
[CODE] <?php require('class.phpmailer.php'); $mail=new PHPMailer(); $mail->isSMTP(); $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->Port=465; $mail->Host="ssl//smtp.gmail.com"; $mail->Host = "ssl://smtp.gmail.com"; if(isset($_GET['submit'])) { $mail->Username=check($_GET['UserName'],"user id required"); if(filter_var($_GET['UserName'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $mail->Username=$_GET['UserName']; $mail->Password=check($_GET['pass'],"password required"); $con=check($_GET['conpass'],"confirm password required"); if($con!=$mail->Password) show_error("Passwords do not match"); $mail->FromName=check($_GET['name']); $_GET['rec']=check($_GET['rec'],"recipient required"); if(filter_var($_GET['rec'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $_GET['recn']=check($_GET['recn']); $mail->AddAddress($_GET['rec'],$_GET['recn']); $mail->Subject=$_GET['sub']; $mail->Body =$_GET['body']; if … | |
I've been trying for hours to retrieve an ID from a previous insert statement to include in the next insert statement. I am not sure what I am doing on but a new fresh set of eyes can see the issue better than I can at the moment. Any help … |
The End.