39,326 Topics

Member Avatar for
Member Avatar for segunoloye

Can somebody please help me with the integration of "securimage" captcha on my form. I have tried to follow the procedure but couldn't and the guy is not responding. Pls help. The link to the installation instruction is: http://www.phpcaptcha.org/documentation/quickstart-guide/ My form procesor php code is below: <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for segunoloye
0
656
Member Avatar for Queos_1

Can anyone please help I'm having an index error with my php code. When I run the code I get the errors Notice: Undefined index: name in C:\Program Files\EasyPHP-5.3.9\www\Authentication1\update1_ac.php on line 9 Notice: Undefined index: surname in C:\Program Files\EasyPHP-5.3.9\www\Authentication1\update1_ac.php on line 10 Notice: Undefined index: contact_number in C:\Program Files\EasyPHP-5.3.9\www\Authentication1\update1_ac.php on …

Member Avatar for Bukhari1986
0
546
Member Avatar for Clanstrom

I would like to know, why extending a built-in class in php is important. I mean let's take the PDO class for example. One can either work with using new PDO(); or class Foo extends PDO. to do the same task. I guess, maybe the only thing that makes sense …

Member Avatar for diafol
0
450
Member Avatar for Anila_1

Hi.. 'm new to PHP so please guide me.. i just want to create a simple yet secure login page with PHP and MySql as db.. The following must be the program flow.. 1.when a user tries to login for the first time it should check whether the user is …

Member Avatar for Clanstrom
0
169
Member Avatar for Priti_P

Hello, My application is in PHP. I use the below code to send invitation- <?php $message=" BEGIN:VCALENDAR VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20130901T121000Z DTEND:20130901T131000Z DTSTAMP:20110525T075116Z ORGANIZER;CN=From Name:mailto:from email id UID:12345678 ATTENDEE;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Sample:emailaddress@testemail.com DESCRIPTION:Test the first invite LOCATION: Test Location SEQUENCE:0 STATUS:CONFIRMED SUMMARY:Test the first icalendar invitation TRANSP:OPAQUE END:VEVENT END:VCALENDAR"; /*headers*/ $headers …

Member Avatar for diafol
0
300
Member Avatar for praba_web

Hi, I am Freelance Web developer. i dont know How to Set Web Design and Web Development Prices? Recently i have done one web designing project.that project contains 16 pages with mysql. Please Tell me how much should i have to charge?

Member Avatar for hag++
0
281
Member Avatar for klemme

Hi all, I'm trying to delete elements from an array - The array should be a shopping cart - So I need to ad/remove items from it. So far I can add items no problem, but i seem to keep failing to delete the correct indexes. The array contains a …

Member Avatar for paulkd
0
3K
Member Avatar for Folaju

I have a silly issue, I am creating a CMS at the moment. it has pages and menus . I created a page to add new pages. on that page i have a drop down list that is populated with data from the menu. I also have an edit page, …

Member Avatar for sachin.padole1
0
10K
Member Avatar for sruthisru

is it possible in php to download uploaded excel sheet by taking only its filename from the database?? if so solve my pblm..thank u..:)

Member Avatar for paulkd
0
243
Member Avatar for falcongr

Hello everyone I am having this simple contact form and i want to make the name , email fields to be required.Also i want to add a thank you message after someone press the sumbit button. Your help will be much appreciated. Php <? if ($_POST['name'] == '' || $_POST['subj'] …

Member Avatar for falcongr
0
499
Member Avatar for patk570

I have a simple login script that I want to test if the password is in temp status or not, if it is, then I want it to take them to changepass.php instead of index.php as seen below... but it doesnt take you to changepass.php it take you right to …

Member Avatar for phorce
0
100
Member Avatar for sing1006

here is my function.when i click on the readp button,it will show undefined variable,but still can show out the string in txt file. <?php if(isset($_GET['readp'])){ readinfo($fname,$lname,$phone,$email,$mname,$gender,$city,$country,$fax,$exp); } ?> <?php function readinfo($fname,$lname,$phone,$email,$mname,$gender,$city,$country,$fax,$exp){ $info=file('log.txt'); for($i=count($info)-1;$i>=0;--$i){ echo cleanOutputData($info[$i])."<br>"; } } ?>

Member Avatar for sing1006
0
311
Member Avatar for urbanthistleuk

Hello, I am currently working on a project which involves sending email out automatically when certain conditions are met in a MySQL dB using a php script, I have managed to build the email part and works, my question is how do you prevent an email being sent out twice …

Member Avatar for iLikePHP
0
187
Member Avatar for haolongvt

The following script will easily allow you to resize images using PHP and the GD library. If you’re looking to resize uploaded images or easily generate thumbnails give it a try Usage Save the code from the ‘the code’ section below as SimpleImage.php and take a look at the following …

Member Avatar for diafol
1
294
Member Avatar for kshahnazari

There is a big problem , when I go into my website with the url www.xxx.com the cookies go into the www.xxx.com and when I go with xxx.com the cookies place is xxx.com meaning that its diffrent from the first one , how can i set and get the cookies …

Member Avatar for GliderPilot
0
175
Member Avatar for pjh1985

Hi, I am building a website and decided to try and add clean URL's using mod_rewrite. This is my first time using mod_rewrite so i decided to follow a guide which resulted in URL's such as [url]www.example.com/gallery/12[/url]. This URL would then be rewritten to index.php/gallery/12. The problem I am having …

Member Avatar for diafol
0
150
Member Avatar for BadManSam

Hi, when I try to use a SELECT statement in php, I get an error: > Resource id #18 <?php include("include/session.php"); $get = mysql_query("SELECT value FROM settings WHERE id=2"); echo $get; ?> The file session.php contains the database credentials .etc and it's correct. But then when I try to echo …

Member Avatar for Derice
-1
417
Member Avatar for msteudel

I was being really lazy and didn't want to write one up myself, couldn't find one, and ended writing one up myself anyways. Hope this helps other lazy people.

Member Avatar for prafful_panwar
1
3K
Member Avatar for facarroll

Some help would be great here. The following snippets work, but I am unable to figure out how to activate the error message "You did not select a name for editing". Both of the other error codes work but if I input 'given' and 'family' and forget to select the …

Member Avatar for whiteyoh
0
133
Member Avatar for crazyvonzipper

Hi There, I am quite new to simpleXML and I would like to know how I can access child nodes by index singe I do not have the node name The XML would look like this: <?xml version="1.0" encoding="UTF-8"?> <Root> <SubRoot> <Content ItemType="ItemType1"> <ItemDetails> <ItemDetail> <City Code="CPT"><![CDATA[Cape Town]]> </City> <Item …

Member Avatar for Mike Askew
0
256
Member Avatar for kelley82879

Why would my html file need to be downloaded in order for it to work properly?

Member Avatar for paulkd
0
223
Member Avatar for pebesoft

Could you please tell me why this code does not put the data in a row ? --------------- foreach ($_POST as $key => $value){ $sql = "INSERT INTO ir3 ($key) "; $sql .= "VALUES ('$value')"; if (!mysql_query($sql)) { die('Insert Row Failed!' . mysql_error()); } $sql=""; } } Thanks for any …

Member Avatar for Byzantine
0
11K
Member Avatar for msz900

HY! i have an issue in php session. the issue is that the session work fine in index page but the username can't show in other pages. lohin.php code <?php session_start(); include './header.php'; include 'connection.php'; if(isset($_POST) && count($_POST)>0) { $user = $_POST['username']; $pass = $_POST['password']; $sSQL = "SELECT * FROM …

Member Avatar for jkon
0
296
Member Avatar for cgull

Hello, I am developing a site where I have once class file that deals with a few database tables. My question is: Is it better to have one big file (the class) and then require only this file or have a class for each table and then have more require …

Member Avatar for jkon
0
215
Member Avatar for nyler01

Please help me in creating a multiple file upload and then process it in ajax so that it can view into the page before the form is submitted this is my form <form name="create_memo" method="post" ENCTYPE="multipart/form-data"> <input id = "memofile" type="file" name="img[]" onchange="uploader();" multiple /> <input type="submit"> </form> <div id="memoupload"> …

Member Avatar for diafol
0
932
Member Avatar for turpentyne

I'm trying a simple query to get students that signed up for each possible matching class, and I'm getting a weird result with this,when I print out. If they've signed up a student in one class, and a student in another class, I get the two students printing out fine. …

Member Avatar for diafol
0
208
Member Avatar for kumar89hitesh

Hello Sir, I have a question that when i feed numerice 10 digit mobile no in the form then it does not feed same as i feed. i took phone no type int(10)and also took different differnt value but in mysql database the value is changing when i feed 10 …

Member Avatar for diafol
0
101
Member Avatar for iLikePHP
Member Avatar for ryantroop
1
411
Member Avatar for mutago

Learning the best way to securely upload files to a server Can someone tell me the best way to ensure that only image is uploaded using finfo() thereby preventing hackers from uploading a malicious files.Assuming I don't want to upload files outside the roots. 1: I check if file exist …

Member Avatar for LastMitch
0
183
Member Avatar for abhi10kumar

I am trying to write .htaccess; but two statements are conflicting each other.. If one runs another not; vice-versa; The last statements are conflicting each other.. #Fix Rewrite Options -Multiviews RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-f #RewriteRule ^(.*)/$ hotels-in-india-list.php?url=$1 RewriteRule ^top-destination/(.*)$ package-detail.php?g=g&url=$1 RewriteRule ^hotels-list/(.*)$ hotel-city.php?g=g&url=$1 RewriteRule ^hotel-detail/(.*)$ hotel-detail.php?g=g&url=$1 RewriteRule ^(.*)/(.*)/$ hotels-in-india-list.php?id=$1&url=$2 …

Member Avatar for LastMitch
0
147

The End.