39,320 Topics

Member Avatar for
Member Avatar for davy_yg

Hello, I have been trying to make contact us works. It appears that it works like I receive a success message but in actual it doesn't work like it suppose to: index.php <form action="contact.php" name="contactform" class="row" method="post"> <h4>Request a FREE TRIAL CLASS!</h4> <div id="input_name" class="col-md-12"> <input id="name" class="form-control" type="text" name="stu_fname" …

Member Avatar for davy_yg
0
497
Member Avatar for ernesto22

This is my edit page. I can see values in my input boxes retrieved from database. What I want to do is update those values when I click on button. Here is my code plz help <?php require_once ('conn.php'); $id = $_REQUEST['main_id']; $sql = "select * from users, work,home where …

Member Avatar for milil
0
111
Member Avatar for ashley9210_2

Hi there I am trying to add some data from a form into a MySQL database and it doesn't seem to been working. Any help would be appreciated. # PHP # <?php if(isset($_POST['add'])) { $dbhost = 'localhost'; $dbuser = ''; $dbpass = ''; $conn = mysql_connect($dbhost, $dbuser, $dbpass); if(! $conn …

Member Avatar for broj1
0
167
Member Avatar for acrocephalus

Hello! I need some help. I have no idea on PHP and I need to set up a custom validation rule. I have a field which name is IBAN. It is composed of 24 characters, de first 4 are PPXX (2 letters and 2 numbers) and the rest are numeric. …

Member Avatar for pritaeas
0
206
Member Avatar for LaurenE

Hi Guys, I found a tutorial online on how to build an events calendar using PHP and Ajax. I am however a little stuck, I have ran debuggers and have error messages printed throughout the code and whilst the basic calendar functionality works, it does not actually display any events. …

Member Avatar for LaurenE
0
344
Member Avatar for ernesto22

im new to php . plz help. i have a page where people fill in a form and check on checkboxes. i also have a page where i edit. i want to know if its possible that on my edit page i could see the checked box checked ? example …

Member Avatar for diafol
0
325
Member Avatar for Jake.20

Greetings, can someone help me on this? I'm really out of ideas. What i need to do is when i click the link the value of it's ID should be pass on the label inside the modal. Here's my code: <div class="row"> <div class="large-12 columns"> <label id="devFont">-Device-</label> <div class="row"> @foreach …

Member Avatar for Jake.20
0
8K
Member Avatar for markii.borabon_1

Im trying to explode the value of my query to input field so im able to edit them: this what I've got so far :: $temp = explode(',',$sizes); if($temp){ $ctr_size=''; foreach($temp as $size){ echo "<input type='text' value". $size.">"; $ctr_size++; } } please help..

Member Avatar for markii.borabon_1
0
206
Member Avatar for an00p

Hello guys, I have a doubt regarding the tabs I have in my project. Its a user view page with multiple tabs in it. Each tab is having details like user basic info, social profile info, skills etc. The current setup is PHP tabs with $_GET['tab'] value. There are different …

Member Avatar for veedeoo
0
385
Member Avatar for Jannezs

Can someone help me with my problem? I try to make a sum with radio buttons in php, but it doesn't see my value This are my codes: <FORM METHOD="POST" ACTION="12.php" > <DIV>Kies uw product:<br> <INPUT NAME="product" TYPE="radio" VALUE="400" CHECKED>Opblaas rijdende Eend <br> <INPUT NAME="product" TYPE="radio" VALUE="15000">Opblaasbare rijdende televisie <br> …

Member Avatar for toxicandy
0
1K
Member Avatar for malatamil

after login i want to display logout and username. but here if i login again its showing login. please some help me index.php <?php session_start(); $city=$_SESSION['city']; $userl = $_SESSION['username1']; <?php if(!isset($userl) == '') { ?> <div class="header_nav_left">Welcome <?php echo $userl; ?> | <a href="logout.php" id="clicklogin" title="Logout" onClick="NewWindow(this.href,'loginwindow','500','500','no','center');return false" onFocus="this.blur()">Logout</a></div> <?php …

Member Avatar for toxicandy
0
149
Member Avatar for ma.da.7140

Can someone help me with below script, this is script for change password. But it always can't recognize the old password. i'm really thankfull for your comments.. <?php include("plogin.php"); //$_SESSION["userId"] = $_POST['id']; //$userId = $_POST['id']; session_start(); include("config.php"); //Cek Login if ($_SESSION['level']==user) { $namaLgkp = $_SESSION['username']; if(count($_POST)>0) { $result = mysql_query("SELECT …

Member Avatar for Adrian_5
0
268
Member Avatar for Glenn Rodgers
Member Avatar for diafol
0
268
Member Avatar for ravi142

Hello, *Problem:* I have Created '**Custom Post**' In Publish Button which i have to insert in **Custom Table** of database. Right now i have create template **single-Posttype.php** but on **Publish** button not insert in custom table Is Any Hooks for that ? Thank You.

Member Avatar for ravi142
0
84
Member Avatar for ma.da.7140

Hi guys, can anyone help me with this script. i would like to update password into md5. what should i do TQ <?php include("plogin.php"); session_start(); //Cek Login if ($_SESSION['level']==user) { $namaLgkp = $_SESSION['username']; ?> <?php session_start(); include("config.php"); if($_REQUEST["Submit"]=="Ganti") { $sql="update tb_user set password ='$_REQUEST[pwbaru]' where username = '$_SESSION[username]'"; //echo $sql; …

Member Avatar for diafol
0
242
Member Avatar for haider885

Hi... I just want to ask What are requirments to make a portal system? Like student-portal system of a University?

Member Avatar for JorgeM
0
139
Member Avatar for showman13

OK, this may be an elementary question, and hopefully there is a quick and easy resolution... I have always had this issue and previously just dealt with it, but want to get it working the way it should be. When I generate an email from within a PHP script that …

Member Avatar for mattster
0
251
Member Avatar for davy_yg

Hello, I have this code and I try to print group_level before I record it and it doesn't appears: invoice_edit.php <!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>Squprime</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" …

Member Avatar for mattster
0
179
Member Avatar for blueguy777

displaying blank page index.php // connection.php $server = "localhost"; $user = "root"; $password = ""; $dbName = "matrimony"; $conn = mysql_connect($server,$user,$password, $dbName) or die("There was a problem connecting to MySQL. Please try again later."); if (!@mysql_select_db($dbName, $conn)) { die ("There was a problem connecting to the database. Please try again …

Member Avatar for diafol
0
434
Member Avatar for veedeoo

The purpose of this class is to be able to create an html form with ease. This is inspired by the form helper in CodeIgniter. This can easily adapt to bootstrap or any css and jquery where id is required. To use this class, we need to include the class …

Member Avatar for veedeoo
3
755
Member Avatar for RonKevinT.Manuela

code works fine...but I have a bunch of photos which are jpeg and they cant be uploaded while the other jpeg photos are able too...its really weird..oh well here's the code... <?php error_reporting(0); mysql_connect('localhost','root',''); mysql_select_db('uslt'); ?> <html> <head> <title>Album Gallery</title> <link rel='stylesheet' href='style.css'> </head> <body> <div id='body'> <?php include('title_bar.php');?> <div …

Member Avatar for RonKevinT.Manuela
0
177
Member Avatar for joshl_1995

Hello Daniweb Community, I was wondering if anyone could help or point me to a good tutorial on how to use Google Authenticator in PHP.

Member Avatar for joshl_1995
0
407
Member Avatar for flynismo

Hey guys I am grabbing URLs from the database. Then with each URL, I need to open that file, and only display the contents between <h1> tags and discard the rest. -- IMPORTANT -- I do not want to actually remove everything else from each file, I simply want to …

Member Avatar for diafol
0
148
Member Avatar for zeeshan009

Hi i am developing Attendence mgt sys. and i have to insert name,section,class,status in database of n number of students. I am able to do listing by the code below: <?php @session_start(); include('config.php'); $sessionName = $_SESSION['NAME']; $sessionID = $_SESSION['UID']; if($sessionName == "" && $sessionID == "") { header('location:index.php'); } $class …

Member Avatar for diafol
0
419
Member Avatar for edwinthomas25
Member Avatar for daniel36

i am working on codigniter . i am developing basic cms.my view code of generating dynamic pages at front end is <ul id="jsddm"> <?php for ($i=1; $i<=$url['10']['10']['10']; $i++) { ?> <li><a href="<?php echo site_url($url[$i]['0']['slug']); ?>"> <?php echo $url[$i]['0']['page_name']; ?> </a> <?php if($url['11'][$i]['11']>0){ ?> <ul> <?php for ($j=1; $j<$url['11'][$i]['11']; $j++) { …

Member Avatar for Nabeel_2
0
6K
Member Avatar for erabxes

How do one go about opening a file in php by using the resources made available on a system. Take for instance that after getting the header content information of a file, one discovers that the file is a word document, or a pdf file, how do one use a …

Member Avatar for steelbrain
0
282
Member Avatar for seotheo

I have the following form that I need the fields to be mandatory before submission: form name="application" id="applicatipn" method="post" action="send_mail.php" > <h2 class="title">form</h2> <p class="sub-text">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX </p> <table width="620px"> <tr class="bg-grey"> <td> <h3 >Personal Details</h3> </td> </tr> </table> <table width="600px" class="bg-light-grey" style=" margin-left: 10px"> <tr> <td valign="top"> <label>Title</label> <br /> <input …

Member Avatar for veedeoo
0
342
Member Avatar for Myronz

I have installed wampserver, now i don't know how to run php program using wampserver i mean how to deploy and what the configuration. Please help, thanks in advance

Member Avatar for veedeoo
0
62
Member Avatar for kaprikorn07

Hello, I would like to make a table column editable that is written in PHP. And that edited value should be subtracted with the data in another column automatically to change the value of it. Eg: I have 3 columns, Pass/Fail/Blocked. $pass and $fail are taken from DB & Blocked …

Member Avatar for kaprikorn07
0
1K

The End.