39,326 Topics

Member Avatar for
Member Avatar for morrisproject

Hi I am using the following code to logout: my logout button calls logout.php [U][B]logout.php[/B][/U] <? session_start(); session_destroy(); header("location:site.php"); ?> This doesnt seem to reidrect to my site.php page, it just loads a blank logout.php page, any ideas?

Member Avatar for hakeemtunde
0
126
Member Avatar for Metophase

[CODE] <?php $oldumask = umask(0); mkdir($url, 0777); umask($oldumask); $myFile = $url."/index.php"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData ="lots of things"; ?> [/CODE] Why am I not being allowed to write files to my website, it was recently working, my host had some technical issues yesterday,, and now …

Member Avatar for Metophase
0
177
Member Avatar for jcarbillon

Guys, need help again, I cant get my mail script working... here is my code [CODE]<?php require_once "Mail.php"; $from = "Sandra Sender <sender@example.com>"; $to = "Ramona Recipient <recipient@example.com>"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "ssl://mail.example.com"; $port = "465"; $username = "smtp_username"; $password = "smtp_password"; $headers = …

Member Avatar for jcarbillon
0
386
Member Avatar for cip6791

Hi all, I'm doing some tests with ajax and php. The below code works when I load the page, but I would like to call it when I click a button. How can that be done? index.php: [CODE]<script type='text/javascript'> $.ajax({ type: "POST", url: "test.php", data: "name=name&location=location", success: function(msg){ alert( "Data …

Member Avatar for cip6791
1
16K
Member Avatar for thedonedeal

I don't know where I went wrong but I'm generally trying to write a .htaccess file that will redirect all files which end in .tsv to .txt instead. (I don't know why but my extension is insisting on renaming the file back. Which is fine, since it's required by another …

0
67
Member Avatar for garyrichard

Hello everyone.. .. Plz help me ..How to work for a payment through net banking.. in PHP.... So that client client can pay through net banking and amount will be transferred into my bank account.. I hear that it requires a payment gateway.. . If is it so then how …

Member Avatar for urtrivedi
0
234
Member Avatar for Mahesh57

Hi sir I want to pay the payments using PayPal i didn't how to use it and how to work upon PayPal please help in programming on PayPal or Send how to Create Please Send the Solutions to my Mail SNIP Thanking you sir

Member Avatar for chrishea
1
78
Member Avatar for rse

Hello, I have a php variable $birthday, I am showing it's value like this: [icode] <div id= "dob" class="pick_number">Day of Birth: <?php echo $birthday ?></div> <div id="test"></div> // value should be printed back in here. [/icode] I need to pass the value of $birthday via ajax, I had the following …

Member Avatar for rse
0
172
Member Avatar for eltonpiko

hi hope someone can help me out how do i include a autoreferece or auto code inside my php form so each form that i submitted will have its own number or an id of some sort to track how many form have been submitted.when form is sent to email …

Member Avatar for diafol
0
189
Member Avatar for k90tour2

Hi. I've three websites on a VPS Server running Apache 2. Each website has been successfully uploading files until now. None of them can upload a pdf file but has no problem with other file types that I allow, such as jpeg. If I examine the $_FILES array, when uploading …

Member Avatar for cereal
0
163
Member Avatar for phorce

Hello, I'm developing a system that emails people like a week before a particular date.. But they don't actually have to visit the page to receive the email, is this possible? Thanks :)

Member Avatar for pritaeas
0
80
Member Avatar for harintfs

Dear Sir, I am facing endless problem, Pls help me. My prob is... (note I am not expert...Just i am started php) I have php page, with out having any session expiry time limit, just i used session start only. nature of my page is required more time with out …

0
58
Member Avatar for sharathg.satya

can anyone say how can we link a css file to a php file.. I tried this [CODE]<link rel="stylesheet" href="site.css">[/CODE] here site.css is my css file and i am including this in home.php file in the head section. but i am not able to get the effects in the webpage. …

Member Avatar for sharathg.satya
0
409
Member Avatar for krushed18

My problem is that I am trying to execute a function on button click event but it just shows not even for a sec it just flashes. html & Javascript : [CODE]<html> <head> <script type="text/javascript"> function createLabel(){ /*Get UserName*/ var unString = document.createElement("label"); unString.className = "userName"; var uName = document.getElementById("username").innerHTML; …

Member Avatar for stbuchok
0
190
Member Avatar for jacob21

How I can add as so many as <input type="file"> same as in GMAIL (add Input Type File dynamically) and send all attachments into an email. Example: If select 10 files then it should be send into email.

Member Avatar for phoenix_2000
0
69
Member Avatar for mrhankey

hi, my application i have built which runs on php/mysql i now need a way to have it insert a value into a table every set date. so, on the isnert form just now they would enter the amount of money the company would receive and which date they were …

Member Avatar for HITMANOF44th
0
110
Member Avatar for harsha.netpem

Hi, I need some help, I am trying to insert multiple check boxes values(this values comes from 1st database) and I am giving the check boxes in the output(result fetch from 1st database). I want to insert all selected values into to the 2nd database from 1st database using PHP. …

Member Avatar for harsha.netpem
0
743
Member Avatar for lastgame2007

[CODE] Default Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2 Pa help sa update code ko po, na-uupdate niya kasi lahat ng nasa tables ko. ano po problem sa query? Here's my code for my update, the problem is when i submit, it updates all …

Member Avatar for simplypixie
0
105
Member Avatar for arunsolo1984

Earlier i was displayed the image by referring current directory. My current directory is '/opt/lampp/htdocs/cms/'. My images was placed in the folder called 'Images' inside the cms folder. So, i have displayed the images by referring "./images/filename.png". Now i have moved the images outside of cms folder. Now i kept …

Member Avatar for almostbob
0
188
Member Avatar for stanley87

Hi,guys,I need some advice on building image link counter and image display counter. 1.I need to know how to track each time the image display counter(should be something like this $counter .= $counter + 1), the image display counter only increase for unique visitor.Is that log the counter into text …

Member Avatar for simplypixie
0
166
Member Avatar for ben_dajao

[CODE]<td id="table-cell"><label> Travelers: </label></td> <td id="table-cell"><input type="button" onClick="" name="" value="Add Traveler" /></td> [/CODE] I need an ajax/js function that will generate an input form to be filled up when the Add Traveler button is clicked. (not open a new window but generate it on the [COLOR="Green"]same page[/COLOR]) So, I want …

0
114
Member Avatar for davy_yg

Hi, What's the difference between these two codes: gallery/index.php [CODE] <link rel="stylesheet" type="text/css" href="css/sliderkit-core.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos.css" media="screen, projection" /> <link rel="stylesheet" href="css/main.css" type="text/css" /> <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos-ie6.css" /> <![endif]--> <!--[if IE 7]> <![endif]--> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos-ie7.css" /> <!--[if IE 8]> …

0
79
Member Avatar for rayrenz

I'm having a problem with a code to display the vowels used in a string for example: "I LOVE YOU" the code will display "The vowels used are: e i o u" Any help? I'm supposed to use loops such as foreach, for, do-while, etc. and arrays..

Member Avatar for skraps
0
314
Member Avatar for andarivaadu1

I have a code like this [CODE] <? php .. if ($type == 1) //book { echo $information_array[0]. '. <i><a href="updatebook.php?q=$information_array[1]">'. $information_array[1] . '</a></i>. '. $information_array[2] . ": " . $information_array[3]. ".<br/>"; } .. ?> [/CODE] In the next page [CODE] <?php $title= $_GET['q']; echo $title; ?> [/CODE] when I …

Member Avatar for andarivaadu1
0
233
Member Avatar for tgr0ss83

[B]I have an array that looks like this:[/B] [CODE] array 0 => array 0 => string '12/08/2011' (length=10) 1 => string '00:00' (length=5) 2 => string '34.83' (length=5) 3 => string '12/08/2011' (length=10) 4 => string '00:00' (length=5) 5 => string '34.83' (length=5) 1 => array 0 => string '12/08/2011' …

0
61
Member Avatar for blaaam

[B]Hello! I have made my web site tamplate, and know is the time to add to CMS. But i have problem in the internet have so many type CMS source, but all what i have tryed (somewhere about 20) i didn't like, becous some have features that i don't need …

Member Avatar for Stefano Mtangoo
0
169
Member Avatar for xega

Hi I'm hoping someone here can help me with a php/mysql question :-) I have a dropdown menu populated from a table "tblsyslur". The fields in "tblsyslur" are: sysla syslaskt syslaid = primary key I have taken the values from the field "sysla" and used that to populate a dopdown …

Member Avatar for xega
0
212
Member Avatar for aregowe

Is it possible to have, when user clicks 'Choose File', to narrow down their choices to .XLS files? My HTML file is: [CODE] <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form> </body> </html> [/CODE] My PHP file …

0
33
Member Avatar for beshoo

Dear all . :) i have 2 classes which generate a key look like this one : Lg+jExclU6WUbd2bKF1OZay1A4vzMHff8Di2TLoBnTwvtmdzZQrq4JErJCJzurKlbNrIBs05q4wf5uTirLVREQ== the 1st class : import java.math.BigInteger; import java.security.KeyFactory; import java.security.NoSuchAlgorithmException; import java.security.PublicKey; import java.security.spec.RSAPublicKeySpec; import javax.crypto.Cipher; import javax.crypto.NoSuchPaddingException; public final class c { public static String a(String paramString) { RSAPublicKeySpec localRSAPublicKeySpec = …

Member Avatar for stultuske
0
2K
Member Avatar for jonnyboy12

Hello all. I have an email that i am sending with html. In the html is some php. I want it so that when someone opens the email i receive a confirmation. I am using this code for it. [CODE] mail($sendto, $subject, $message, $header); [/CODE] It does not work. One …

Member Avatar for jonnyboy12
0
166

The End.