38,020 Topics

Member Avatar for
Member Avatar for El Duke

Hello folks, In short, this code is vulnerable: [CODE] <div class="search"> <form action="/search" method="get" name="header_search"> <label>{l t='Search Business'} <input name="searchtext" type="text" id="searchtext" placeholder="{l t='e.g.Marriott'}" /></label> <label>{l t='City'} <input name="cityname" type="text" id="Hsearchcity" autocomplete="off" placeholder="{l t='All Cities'}" class="commentColor cityname"/> </label> <a onclick="header_search.submit()" href="javascript:void(0)">{l t='Search'}</a> </form> </div>[/CODE] I have been trying to implement …

Member Avatar for Stefano Mtangoo
0
239
Member Avatar for SEOKRU

Hi, On login page load, (even before submitting user name and pass) Debugger finds "permission denied error". U can see it here: [B][URL="http://goldpharm.co.il/authentication.php"]goldpharm.co.il/authentication.php[/URL] [/B] Now, when a user submit's user name and pass, nothing happens, he stays on the login page. Could it be a problem in authentication.php file? and …

Member Avatar for SEOKRU
0
177
Member Avatar for vaibhav1983

Hi All, I want to integrate a What you see is what you get editor for my website. I understand that the editor can be the one as I can see I am typing in. How do I store data in database so that when I retreive the data from …

Member Avatar for quasipickle
0
161
Member Avatar for ujjval dave

hi guys, i have confusion about comparing dates in php. i want to compare birth date with current date. here is my code. i hope u will me to solved out this problem. thanks [CODE] <?php //code for get values from session session_start(); if(isset($_SESSION['I'])){ //this code will get email id …

Member Avatar for ujjval dave
0
9K
Member Avatar for mbarandao

I'm wondering if it is possible to skip certain fields in the mysql table in a sql statement. Here is what I mean: I have a table that has the following columns: firstname lastname phone dob Suppose I write the following statement: $[CODE]mysql_query=("insert db_table (firstname, lastname, phone) VALUES ('$firstname' ,'$lastname', …

Member Avatar for mbarandao
0
188
Member Avatar for sanchow

Hi, I am trying to use AJAX to do a simple thing of displaying the results in the same page. Clicking on the <a href tag should display the results in the same page. This is working correctly in IE but the onclick() function is not working in firefox and …

Member Avatar for Airshow
0
1K
Member Avatar for furrls

[CODE]$qID = ''; $question = 'Question not set'; $answerA = 'unchecked'; $answerB = 'unchecked'; $answerC = 'unchecked'; $answerD = 'unchecked'; $answerE = 'unchecked'; ?> <html> <head> <script type="text/javascript"> function show_alert() { alert("Please Click OK to proceed!"); } </script> </head> <form action="Process1.php" method="POST"> <table> <tr> <td> <?php $SQL = "SELECT stu_satisfaction_tblquestions.question_id, …

0
50
Member Avatar for xuexue

hello guys, i had a problem with the automatic email sending using php.. the error states: [CODE] Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\edith\email\index.php on line 36 [/CODE] *******index.php *******this is my code [CODE] $to = "juan@yahoo.com"; $subject = "Email testing"; $message …

0
86
Member Avatar for nickles

Hi, I'm getting the error Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in C:\wamp\www\******\include\Database.php on line 294 when I try to run this [CODE]function calcNumActiveUsers() { $query = "SELECT * FROM ".TBL_ACTIVE_USERS; $result = $this->query($query); //just uses mysql_query var_dump($result); $this->num_active_users = mysql_numrows($result); }[/CODE] As far as I …

Member Avatar for nickles
0
105
Member Avatar for xuexue

could you give me a very simple example of autocomplete in php? this should have a connection to the database.. having the keydown() function and highlights the letters which are similar to the one being typed. best regards and thanks in advance..^^

Member Avatar for xuexue
0
140
Member Avatar for FreddieBambino

Hi. I was wondering, is there any way for php to automatically check if links are valid. For example, lets say I have 10 links and I want a cronjob to check if they are valid or not, and if they are invalid I would throw a query statement to …

Member Avatar for FreddieBambino
0
152
Member Avatar for pjh1985

Hi, i found this image uploader in another post but i'm having a few problems with errors or upload confirmation not displaying at all and was wondering if someone could take a look. [URL="http://www.daniweb.com/forums/thread144647.html"]original thread,[/URL]the file is a zip near the bottom of the page It seems the database code …

Member Avatar for cossay
0
71
Member Avatar for sajohnson05

Below is my file read. I am trying to output it in a table form and also i am trying to read any length of tilde document. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <?php $namefile = 'pilots.txt'; …

Member Avatar for sajohnson05
0
136
Member Avatar for Mi-Dia

I am in the hard task of rewriting a template system, specificly to support repeating content of a forum script. I am currently tyring this with a dummy file at the moment and I am stuck on one part. What is basically does, is load the following html which has …

Member Avatar for Mi-Dia
0
118
Member Avatar for andydeans

hi, this is probably easy so hope someone can help asap. i have an existing bit of code here: [CODE] <img src="images/<?php echo (($row_rsTimelineActive['ReservationFormSentToPP']==0)?'no.gif':'yes.gif'); ?>" > [/CODE] instead of it being ==0 i want to be able to display no.gif if ReservationFormSentToPP is null and yes.gif if not null. hope …

Member Avatar for mazeroth
0
62
Member Avatar for eltonpiko

hi does anybody know a good script that i can use to make client on different level like an mlm script but not to sell anything but to manage those people .example if you are a client you can log on to the site and see how many people you …

Member Avatar for eltonpiko
0
90
Member Avatar for tehmarto

Hi all, So I have a .jpg file hosted and I wanna see if someone views the image, from where its viewed. Meaning I wanna see the referrer and log the referrers in I file. How can I do that? Thanks in advance.

Member Avatar for mazeroth
0
69
Member Avatar for mazeroth

I thought I would share with you all a tutorial I just posted on creating a Facebook app using the Facebook Graph API and their PHP SDK. It's a very easy to follow tutorial and by the end you'll have your own app reading and writing posts to your wall …

0
82
Member Avatar for sajohnson05

I have a code that needs to read in a file and has a parameter file. I need to know how to put in <=,<,=,>=,> operators that will be in my parameter file. I beleive that it needs to go in this line: $search=explode(':',strtoupper($params[0])); but not sure if it will …

Member Avatar for sajohnson05
0
97
Member Avatar for public-image

I use Firefox and it has never given me a problem when logging in but with Internet Explorer and Chrome, there seems to be a problem.. It as if it refreshes the page without doing the method of posting the form. I would really like some help as to where …

Member Avatar for public-image
0
65
Member Avatar for divyakrishnan

Hi... Is it possible to search a string on a PDF file? I want to search and highlight a string on a PDF file . If any idea please help me..... Thanks for advance

Member Avatar for cereal
0
895
Member Avatar for maged4e

hi i have small problem would u mind to help me? i want get full path of file in my hard? but the wamp server give me results as fallow : c:\\fake path\..... pr gives me only the file name only for example if i want to get file in …

Member Avatar for Stefano Mtangoo
0
84
Member Avatar for Arsench

Hello world, I have a problem with sending email in PHP. I was sending many times with the same code, but now it doesn’t work and don’t know why. I’ve contacted with domain helpdesk, but they said that there are all OK and PHP server works properly. Please someone could …

Member Avatar for Randy Orton
0
101
Member Avatar for eltonpiko

hi can anyone tell me how i can achive this. i have a product to sell online and will use alertpay but i have some additional information i want the user to fill in before they press the buy button to take the to the payment area.user must give the …

Member Avatar for Dragonbaki
0
144
Member Avatar for fugo.deepak

Hi All, I am new to this community... (Hope i am placing my question in right place) I want to generate a Quadrant Graph having (Ist IInd IIIrd and IVth) Input will be x and y co ordinate values . Output should be the plotted graph(x and y values plotted …

Member Avatar for nonshatter
0
107
Member Avatar for mbarandao

Hello: Here is an interesting question. I have a client payment recording form which retrieves data from a table that has clients balances and other. My task with this form is to take payments (which can be payments in full or partial payments). I need to be able to update …

Member Avatar for mbarandao
0
83
Member Avatar for Sorcher

Hello people! I would like to know how to remove white space and replace them with a "_" on the file uploaded by this script. [CODE]<?php // Check if a file has been uploaded if(isset($_FILES['uploaded_file'])) { // Make sure the file was sent without errors if($_FILES['uploaded_file']['error'] == 0) { // …

Member Avatar for diafol
0
193
Member Avatar for JoeyWong

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to …

Member Avatar for JoeyWong
0
82
Member Avatar for youlichika

I want to post value from index.php, then get the value by self without refresh the page. one botton with two values, I want explode them and finally get $namea and $nameb. then use them in other php part. but when I use echo $name, in the source code, I …

Member Avatar for saiprem
0
171
Member Avatar for arctushar

Hello I have created a file name connect.php and code of this file is as below [CODE]<?php $db_server = 'localhost'; $db_username = 'myweb_user'; $db_password = 'Aunhy125$%'; $db_table='main_table'; ?>[/CODE] To connect database I used to include_once() function. What may be the problem for this. Or what would be be best way …

Member Avatar for madCoder
0
57

The End.