39,316 Topics

Member Avatar for
Member Avatar for samxa

Hey guys, well im new to the php scene, but want to put this form which will auto-generate a new page (example : www.abc.com/123 or something like that) and then send a thank you email with the link to the auto generated page to the recipient. it will have fields …

Member Avatar for diafol
0
295
Member Avatar for azdonald

Hi, I want to output a random value from an array. i use the array_rand() function but this function returns the array key while i want echo the value. $mtn = array(08034, 08035, 08036,08037); $mtnwinner = array_rand($mtn, $num_req = 1); echo $mtnwinner; the above code will return any of the …

Member Avatar for vibhaJ
0
129
Member Avatar for hwoarang69

SMTP Error: Could not connect to SMTP host. can some one check if i doing this right? $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Mailer = "smtp"; $mail->Host = " smtp.gmail.com"; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; //ssl or tls //$mail->Host = "ssl://smtp.gmail.com"; $mail->Port = 465; //set smtp port for the gmail …

Member Avatar for vibhaJ
1
8K
Member Avatar for vindom

Hi! I have iframe with multiple images retrieved from DB. Each img have "comment" button underneath it. I need this button to redirect to the comment page where user can leave comment . Redirection function works. But at the same time I need this button to send img ID to …

Member Avatar for vindom
0
400
Member Avatar for Transcendent

I have a form where someone can send me a message but I do not seem to get the e-mail. here is the html file: <!DOCTYPE HTML> <html> <head> <title>Financial E-mail: Send us questions.</title> <hr/> <style type="text/css"> body { background-color: rgb(98,21,153);; background-position: top; background-repeat: no-repeat; color: gold; } a:link {color:rgb(255,215,0);}/* …

Member Avatar for diafol
0
224
Member Avatar for gopi17

I'm having trouble deleting this file... keep getting this error : Warning: unlink(Gate_pass.csv) [function.unlink]: Permission denied in C:\wamp\www\SVS\copydata.php on line 31 i search trough some sites, they said replace the $myFile with the orginal name Gate_pass.csv, but still getting the same error...can someone guide me on this matter. thank you …

Member Avatar for gopi17
0
139
Member Avatar for hwoarang69

Deprecated: Function split() is deprecated in C:\xampp\htdocs\login_test\class.phpmailer.php on line 470 this error is coming from $mail->AddAddress(tester@hotmail.com); //is this same as To: require_once('class.phpmailer.php'); $mail = new PHPMailer(); $mail->AddAddress("test@hotmail.com"); //To: $mail->Subject = "test1"; //html body $body = "HEllow ikhlas"; $body .= "rest of boey"; $body .= "Sincerely,<br/>"; $body .= "test"; $mail->From = …

Member Avatar for hwoarang69
0
679
Member Avatar for eltonpiko

hi i trying to work on a lunch monthly order form.what i want to do is create a table just like a calendar with 30 cells label 1 to 30 days and in each cell the same food item with checkbox next to it generated from mysql. the user put …

Member Avatar for diafol
0
1K
Member Avatar for Patiodude

I've just started working with PHP, and one of the first things I want to do is add a timestamp to my article template in Dreamweaver, so that each article I post automatically has the post date. How would one go about doing this?

Member Avatar for diafol
0
151
Member Avatar for hwoarang69

les a user come on index.php page. he sees login form. but he forgot his password. so he click forgot password. on forgotpassword.php page he fills a form. <form action = 'forgotpassword.php' method = 'post'> Username: <input type='username' name='username'><br/> E-Mail: <input type='email' name = 'email'><br/> <input type='submit' value='get password'> <a …

Member Avatar for vibhaJ
0
124
Member Avatar for sentongogray
Member Avatar for Rsimpson105

I keep getting the warning "Warning: Cannot modify header information - headers already sent by (output started at /home/camelarc/public_html/contactform.php:11) in /home/camelarc/public_html/contactform.php on line 33" The warning occurs after i fill out a form on my website and press submit. The warning appears, but the php file still sends an email …

Member Avatar for senthilvignesh
0
244
Member Avatar for hwoarang69

so i tried this first. every thing works and get a message echo"message successfully, sent". but when i check my email nothing comes. //$email is the user email $to = $email; $subject = "Forgot password"; $message = "Hi $firstname_db,\n Your password is $password_db"; $headers = "from: text@hotmail.com"; if(mail($to, $subject, $message, …

Member Avatar for hwoarang69
0
361
Member Avatar for galtectdemo

How can l use google drive api to upload files to google drive using php without extension

Member Avatar for mschroeder
0
58
Member Avatar for kimmi_baby

Hi, I've created a template in wordpress where the child pages of one page are displayed on the page. What is displayed is the thumbnail (feature item) of each page and the content of each page. The problem I'm having is that in Safari, the third (last page) is not …

Member Avatar for diafol
0
186
Member Avatar for diafol

Hi Folks, Like many of you, I have been awaiting PHP6 for some time - especially since all those pre-emptive manuals appeared on the shelves of my local bookstore some time ago. The main wait, as far as I can make out has been down to the inability to agree …

Member Avatar for diafol
1
83
Member Avatar for Octet

I am creating a website although during a trial run with a couple of friends they uncovered a bit of a major issue.... the ability to spam. I have added a hidden box e.t.c. to attempt to prevent bots from spamming but my friends where able to post twenty messages …

Member Avatar for nielsep
0
226
Member Avatar for priebd1

I have a csv file with the following data: DATA1-1 DATA1-2 DATA1-3 DATA2-1 DATA2-2 DATA2-3 DATA3-1 DATA3-2 DATA3-3 I need to append more data to the file so it will look like this: DATA1-1 DATA1-2 DATA1-3 DATA1-4 DATA1-5 DATA2-1 DATA2-2 DATA2-3 AAAAAAA BBBBBBB DATA3-1 DATA3-2 DATA3-3 AAAAAAA BBBBBBB I have …

Member Avatar for priebd1
0
3K
Member Avatar for ramganesht

I have question in creating a dynamic menu items. my require ment is as below. In my web site the menu items are 'Education' 'Leasure' 'Quotes' In Education i have sub menu items like colleges, schools, science, maths. In Leasure i have sub menu items like movies, resorts, parks, lakes. …

Member Avatar for diafol
0
150
Member Avatar for stephen_UK

I have 2 versions of the same database. One uses M/S Access and is installed on stand alone laptops, the second is web based MySQL/HTML/PHP. The database is simple ie a single table with cuirrent 8000 records with 32 fields/record which is expanding at around 1000 records per year. What …

Member Avatar for stephen_UK
0
167
Member Avatar for HiWorld

I am stuck on a problem, and can't seem to figure out why this isn't working, when I am pretty sure it should be... I am trying to get my code to delete users from the dropdown list after the admin hits the delete button within the page. The form's …

Member Avatar for HiWorld
0
355
Member Avatar for rakibtg

hello there, i can run php script from my computer(windows 7) by xampp. today while testing a php mail form to send an email from my computer to a e-mail address then it refuse me! it shows me something like this: Warning: mail() [function.mail]: SMTP server response: 553 We do …

Member Avatar for pritaeas
0
230
Member Avatar for BoB3R

Hello, I want to edit record in mysql and ive got problem with UPDATE command its giving me syntex problem here is the code: <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dbname", $con); $sql="UPDATE users SET (userid, firstname, lastname, email, username, password, role) …

Member Avatar for BoB3R
0
172
Member Avatar for ak47carbon

diffrentialte btween function, variavble,constant and string in php tell me $_file[] is function or variable

Member Avatar for cereal
0
141
Member Avatar for hwoarang69

for some reason when i hit submit button it doesnt go run php code. i have this form below. when i hit sumbit button it should start the php code. <form action="" method="post"> <?php //print errors if(array_key_exists('reg_error', $_SESSION) && !empty($_SESSION['reg_error'])) { echo $_SESSION['reg_error']; unset($_SESSION['reg_error']); } ?> Firstname: <input class = …

Member Avatar for |-|x
0
1K
Member Avatar for Albert Pinto

Hi People. Got a small issue, although its big for me........ I'm using phpmyadmin.... I have 2 tables.... My First table is 'user' which has 4 columns ( eventid, Name, Email, Address ) ( eventid is the primary key) My Second table is 'trips' and it has 6 colums ( …

Member Avatar for pritaeas
0
115
Member Avatar for my3h

Hi, I really do not know how to read line by line csv file and store it in the database. I want to check datatypes, and the mandatory fields. Please somebody help me in this

Member Avatar for diafol
0
129
Member Avatar for BoB3R

Hello, I am new in all this and i was hoping you could help me with a little thing so here it is ive got 2 files one is for showing movies from database and there is "delete" button that is taking an a id and deleteing the raw display.php …

Member Avatar for BoB3R
0
118
Member Avatar for leader2345

I have a form in php that allows users to edit their user profile after the user logs in. It is prefilled with the users current info and when it is submitted, it updates the database. However, when it returns to the edit user profile page, the prefilled text is …

Member Avatar for diafol
0
4K
Member Avatar for prem2

Dear all, I am new to mvc architecture Programming concepts.I have doubt that why peoples are using MVC Architecture?.What are the core benefits of using this architecture. Thank you, Regards, prem2

Member Avatar for baig772
0
143

The End.