4,124 Topics

Member Avatar for
Member Avatar for mmcdonald

Now this one always bugs me! I'm dealing with a lot of checks that result in redirection dependant on certain results. **Example:** 1) If session exists and users lands on login.php they are pointed to index.php. 2) When landing on any page after loggining in, if their account isn't complete …

Member Avatar for Atli
0
478
Member Avatar for L-D

Hi again, I have a cash gifting script that I converted to advertising instead of "gifts". So no host should have issue with it. I went thru the session is registered thing but I don't know how to insert the newer coding. What exactly do I replace? I know about …

Member Avatar for Zagga
0
264
Member Avatar for london-G

Hello, When I am running my page I get this error: Fatal error: Call to undefined method WC_Cart::get_fees() in /var/sites/m/mysite.co.uk/public_html/wp-content/themes/mio/woocommerce/checkout/review-order.php on line 53 Here is my review-order.php <?php /** * Review order form * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if ( ! defined( 'ABSPATH' ) …

Member Avatar for Atli
0
396
Member Avatar for newbie14

We have socket application which sends out quite a number of email out. So we decided to send huge number message into it which will trigger emails. Eventually we see the email are taking hours before it reach any of the inboxes either gmail,hotmail or yahoo etc. We have this …

0
417
Member Avatar for PoisonedHeart

Hello, I'm into PHP/Javascript and having some problem here, so just want to seek help from you guys. I have created a page with a textarea. (named Step 1) when the user clicked the "Next" <a></a> link the textarea's value will be stored in a session variable. I've did it …

Member Avatar for PoisonedHeart
0
769
Member Avatar for Shikha_1

***registration.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>Register</title> </head> <body> <fieldset> <legend>Registration</legend> <form name="register" action="register.php" method="post"> <table width="510" border="0"> <tr> <td colspan="2"><p><strong>Registration Form</strong></p></td> </tr> <tr> <td>Username:</td> <td><input type="text" name="username" maxlength="20" /></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="password" /></td> </tr> <tr> …

Member Avatar for broj1
0
257
Member Avatar for 68thorby68

I have an issue with `$_SESSION` global across a single domian, on my local machine, running PHP 5.1 build 2600 I'm creating a session in the domain root. $first_name='martin'; $second_name='thorburn'; $login_array=array("first_namet"=>$first, "second_name"=>$second); $_SESSION['login']=$login_array; When I run `print_r($_SESSION['login']);` in the root, I get the expected response "Array ( [first_name] => martin …

Member Avatar for 68thorby68
0
395
Member Avatar for neo111

Hi I have a new Dell Dimention 3100c running windows xp home edition. Just before Christmas I allowed my mates two teenage kids to use the house for a weekend while I was away. (I know, I know). When I got back I sat down for a session on the …

Member Avatar for caperjack
0
355
Member Avatar for OsaMasw

I want to create a login system with "**remember me**" option, but am afraid to use cookies because I don't know how to handle the security for it, so I prefer to use session instead, but all session will be destroyed after 30 minutes or when user close the browser, …

Member Avatar for OsaMasw
0
139
Member Avatar for SQLpower

Hello, I created an XBAP web application which I already implemented on my website but I am wondering if it would be possible to pass PHP variables like session etc. to the app itself? I know it's possible with ASP.net, but I am not sure for this one. For example, …

Member Avatar for LastMitch
0
231
Member Avatar for Abbas Ansari

I have a problem, Whenever I add the number to my session, I recieve an error say **Undefined index: cart_1 in D:\wamp\www\MiniCart\cart.php on line 100** And when I press the add key the error repeats on top yet still giving the output and upon refreshing it works fine and adds …

Member Avatar for Abbas Ansari
0
140
Member Avatar for Javier_3

Hi, I want to use session state in mode SQL Server I googled some parameters to add in `<sessionState mode="SQLServer" />` in web.config file like: * Sql command time out. * State network time out. * Compression enabled. * Max pool size. * Min pool size. So I have some …

Member Avatar for geniusvishal
0
281
Member Avatar for sanbhu2105

hi guys, i have 2 tables - tblproduct and tblretprod. i insert my product details to tbl product with prod_id being auto increment other fields are prod_name, prod_brand, prod_desc, prod_photo, cat, subcat i hv another table tblretprod with fields id, user_id, prod_id, prod_price i can add my products successfully i …

Member Avatar for sanbhu2105
0
335
Member Avatar for SQLpower

Hello, I have a PHP webpage and I want to pass my session to my XBAP app. I created a cookie. $opts = array('http' => array('header'=> 'Cookie: ' . $_SESSION['FILENAME']."\r\n")); $context = stream_context_create($opts); $contents = file_get_contents("http://localhost/WpfBrowserApplicationUltimate.xbap", false, $context); echo $contents; private void btnAbout_Click(object sender, RoutedEventArgs e) { //MessageBox.Show("RichTextPad. © 2014 …

Member Avatar for Ketsuekiame
0
274
Member Avatar for mbarandao

Hello All: I am some difficulties getting some database variables from an included file to my mysql connection. Here is what i have: file one Called config.inc.php: session_register("client_id"); $_SESSION['client_id'] = $_SESSION['SESS_ACCT_ID'];// $club_id=$_SESSION['client_id']; ob_start(); include('../../../page_title.php'); ob_end_clean(); include('../../../datalogin.php'); if (!defined('DEFAULT_HOST')) define('DEFAULT_HOST','localhost'); if (!defined('DEFAULT_USER')) define('DEFAULT_USER',$account_user); if (!defined('DEFAULT_PASS')) define('DEFAULT_PASS',$account_pass); if (!defined('DEFAULT_DB')) define('DEFAULT_DB',$account_db); the variables …

Member Avatar for mbarandao
0
429
Member Avatar for bfitzgerald

Hi guys I'm trying to create a login system on my site that uses the login information from my phpBB forum. I'm having trouble retrieving the password hash from the forum database. I'm a bit of a newbie to php so am a bit lost. Thanks in advanced. <?php //include …

Member Avatar for F-3000
0
476
Member Avatar for Smartflight

File structure: /index.php /source/header.php /manager/login.php /manager/scripts/auth.php login.php: <?php require ("../source/header.php"); ?> <?php if ($_SESSION['check'] == 2) { unset($_SESSION['check']); echo "<p>Incorrect! Please try again.</p>"; } ?> <form action="scripts/auth.php" method="post" name="login-form"> <label>Table ID</label> <br /> <input type="text" size="20" id="ID" name="ID"> <br /><br /> <label>Password</label> <br /> <input type="password" size="20" id="pass" name="pass"> <br …

Member Avatar for Smartflight
0
469
Member Avatar for karthikmanda

# my html page # <form action="file_insert.jsp" method="get" name="ff" onsubmit="return validation()" > <tr> <td height="50" colspan="2" align="center"><font color="#CC0033"><strong><font color="#663366"><em><font size="4">Fileupload </font> </em> </font></strong></font></td> </tr> <tr> <td width="117" height="36"><font color="#FFFFFF"><em><font color="#663333"><strong><font color="#400040">Filename:</font></strong></font></em></font></td> <td width="219"><input type="text" name="fn" class="a" /></td> </tr> <tr> <td height="43"><em><font color="#663333"><strong><font color="#400040">File id:</font></strong></font></em></td> <td width="219"> <input type="text" class="a" name="fid" …

Member Avatar for LastMitch
0
283
Member Avatar for samoslook

hello i m building a website with asp.net language and i have made the session and the login and log out but i have trouble that when i click back in the browser and return the session remain so my question how to end the session and return to the …

Member Avatar for samoslook
0
133
Member Avatar for Dani

I'm using pspell and I have a large text document of one word per line that I would like to add in addition to the US dictionary already being loaded. I don't need to be writing to this document so just loading it for the session would be fine, I …

Member Avatar for Dani
0
316
Member Avatar for maharrington

Hi Everybody, Had a website transferred from Windows to Linux server, and ever since, I've had an error coming up when attempting to login - meaning that I can never actually enter the secure area of the website. I can login (i.e. press the login button) without error - however, …

Member Avatar for diafol
0
351
Member Avatar for xxmp

Hello I want to sent mail and i am using this code public boolean sendEmail(String from, String to, String subject, String themessage){ boolean success=false; // Assuming you are sending email from localhost String host = "localhost"; // Get system properties object Properties properties = System.getProperties(); // Setup mail server properties.setProperty("mail.smtp.host", …

Member Avatar for jalpesh_007
0
160
Member Avatar for Buppy

Hello, Is it possible to share cakePHP sessions (stored in the database) across subdomains? This thing - ini_set("session.cookie_domain", ".mydomain.com"); seems not to be working in this case. Thanks

Member Avatar for LastMitch
0
148
Member Avatar for dourvas

hallo there, i ve build a very small cms that a user can install to a web server (apache). Its about school pages. I am writing this piece of info because i have tested it enough and it had been and still is working fine for several users. Yestarday, a …

Member Avatar for Tpojka
0
174
Member Avatar for aadebayo

Hello Please can any one help me? I want to export from mysql to pdf, using PHP and FPDF. Please can some one tell me how to export, using the following format [B]Firstname Lastname Address Town Post Code[/B] The code below will only do it in this format [B]Firstname Lastname …

Member Avatar for eaton9999
0
2K
Member Avatar for nathan.pavlovsky

Hello programmers! I am creating a player vs. computer connect four game. It has full interactivity along with error checking for invalid inputs by the player. However, when the main() function is run, the program "stops"/or freezes up after there are five pieces in the connect four board. The game …

Member Avatar for nathan.pavlovsky
0
174
Member Avatar for dhani09

I have this loop where i'm adding items to a session array. like this: $SQL = "SELECT * FROM tbl_product where id ='{$cartid}'"; //execute the query $result = mysql_query($SQL); //add the resultant data into a session array while($row = mysql_fetch_assoc($result)){ $_SESSION['cartItems'][] = $row; } Somewhere in my HTML document, i'm …

Member Avatar for Banderson
0
1K
Member Avatar for eddiesaliba

Hi! I am testing the "session" object and I don't know why it is losing data when I change the web page. I created a simple software to show the problem: See the code: Page index.jsp: ============== <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Login</title> </head> …

Member Avatar for eddiesaliba
0
873
Member Avatar for ytrobe

I am using WAMP server to code a form. The form contains 6 different pages. On the WAMP server when I go through the form it works perfectly, all session variables are brought from one page to the next, and so on. I call session_start() before each and every page …

Member Avatar for ytrobe
0
2K
Member Avatar for mallows.yum

hello all. here is my code which searches all my record. <?php /** * Main.php */ include("include/session.php"); //include("viewproj.php"); ?> <html> <head> <title>Export to Excel</title> </head> <body> <form action="searchemp.php" method="post" > <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) …

Member Avatar for mallows.yum
0
218
Member Avatar for nitin1

although, i have read C++ books in my past, but as my placement session is there, i just want to have some books from where i can see everything in shortest and concise possible. classes, polymorphism, inheritnce concepts etc like this . any book which u can tell me ? …

Member Avatar for dexblack_1
0
186
Member Avatar for dstoltz

Hi Folks, I have a web application developed in Classic ASP. After the user successfully logs in, the "main page" of the application stays on the screen (all other functions are done in DHTML/CSS pop up windows). The main page contents are updated with jQuery, so the page never physically …

Member Avatar for dstoltz
0
258
Member Avatar for phpDave

Hello, I trying to learn how to create a forgot password page. I used some code from another forum and having some trouble with it. I get an error for the $recs and $row variables. Any feedback on this topic would be appreciated. Thank you. <?php require_once('Connections/connadmin.php'); ?> <?php session_start(); …

Member Avatar for srilatha12
0
220
Member Avatar for mallows.yum

Hi All! i have her a code <?php /** * Main.php */ include("include/session.php"); //include("viewproj.php"); ?> <html> <head> <title>Export to Excel</title> </head> <body> <form action="searchemp.php" method="post" > <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: …

Member Avatar for Eng. Hadi
0
471
Member Avatar for jah0073

I'm sure this will be very simple for someone to figure out, I have a template form a company called cvent, we are using them as our registration payment solution. I have been trying to get their template to suit our site but I am falling short with aligning the …

Member Avatar for joel.design
0
549
Member Avatar for cereal

#This is for Laravel 3.*# ## Hello, ## With this snippet I'm providing a simple way to automatically filter `Input::get()` and `Input::old()`. To achieve this result we need to make few changes: * extend Input and Redirect classes by creating new files in `application/libraries/`, the files are: **input.php** and **redirect.php**; …

1
378
Member Avatar for ricardojorge.net

# Creating a register and login page, by creating a mysql database and all php files. # ## I was reading a [thread that is dead](http://www.daniweb.com/web-development/web-design-html-and-css/threads/97183/to-create-a-registration-page-and-login-page) now, so i started this one: ## **Simple PHP login:** Create a database (mysqladmin) Name the table "dbUsers." It will need 4 fields: Name …

Member Avatar for Ank1
0
459
Member Avatar for php.coder

hi all; how can i clear paypal after a user has logged out and the session is destroyed` any help would be appreciated thanks

Member Avatar for LastMitch
0
108
Member Avatar for somewherehot

Hi All We have a web application written in symfony framework (php). It works really well generally. However sometimes some users can not log in using internet explorer. If we clear the cookies / temporary internet files, then it allows you to log in. A few months can pass by, …

Member Avatar for LastMitch
0
146
Member Avatar for mallows.yum

hello! i have here a code <?php include("include/session.php"); ?> <?php echo $session->username; $sql = "select * from employee where fname like 'pedro'"; // CONNECT KO TO DAPAT SA FORM KO NA SEARCH-FORM $result=mysql_query($sql); $num=mysql_num_rows($result); $row = mysql_fetch_array($result); //mysql_close(); if($row) { $i=0; while ($i < $num) { $empnumber = $row[0]; $fname=$row[1]; …

Member Avatar for LastMitch
0
550
Member Avatar for MattD00

I have set up a cookie in JavaScript to store the change to the stylesheet. The cookie is loaded using <body onload="set_style_from_cookie()"> This cookie was working fine until I set a session cookie in PHP to verity if a user was logged in session_start(); if(isset($_SESSION['username'])) { $user = $_SESSION['username']; } …

Member Avatar for riahc3
0
345
Member Avatar for |-|x

Hi all, I have a somewhat philosophical issue I would be interested to see others opinions on. I have a site that receives several values via the querystring that are necessary for use throughout the site. By default other links internal to the site do no include these values, so …

Member Avatar for pritaeas
1
150
Member Avatar for mallows.yum

hi all! i have here a code. <?php /** * Main.php */ include("include/session.php"); ?> <html> <head> <title>Export to Excel</title> </head> <body> <form action="saverec.php" method="post"> <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: ' . …

Member Avatar for arunmagar
0
369
Member Avatar for hallianonline

Hi everyone I am facing a little issue please help me in this regards I have created a form with validation all the validation fields are working fine but in the end i am facing that after validating all the fields should be insert into database but for the test …

Member Avatar for hallianonline
0
170
Member Avatar for riteshsingh_22

I'm new to session management so can anyone tell me ,How to store multiple values selected from gridview into session. and retrieving that values stored in session in another page.. any suggestions r appreciated..pls help..

Member Avatar for annaharris
0
342
Member Avatar for lloyd.farrell.7

Hi everyone, got really strange issue with a template I have started to build. I am continually getting the follwing error message Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent Even though the only code I have on my page is <?php session_start(); ?> <!DOCTYPE html> …

Member Avatar for minitauros
0
389
Member Avatar for aqualove

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="icon" type="image/png" href="images/ump-logo.png" /> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Universiti Malaysia Sabah</title> <link rel="stylesheet" href="jquery.mobile-1.0.min.css" /> <link rel="stylesheet" href="_assets/css/jqm-docs.css"/> <script src="jquery.js"></script> <script src="_assets/js/jqm-docs.js"></script> <script src="jquery.mobile-1.0.min.js"></script> </head> <body> <div data-role="page" class="type-index"> <div data-role="header" data-theme="f"> <h1>Sistem Kompaun Pelajar</h1> <a …

Member Avatar for Webville312
0
184
Member Avatar for rubai

I have a problem want to be solved. I have three pages. page1.php, page2.php page1.php has a form with two text field. one text field is for name and another is for number. there is a submit button and a "next" button too. using session I want show given name …

Member Avatar for diafol
0
2K
Member Avatar for ibr123

The tiny tots tee-ball league has 12 players who have jersey numbers 0 through 11. The coach wants a program into which he can type a player’s number and the number of bases the player got in a turn at bat (a number 0 through 4). Write a program that …

Member Avatar for tinstaafl
0
136
Member Avatar for rubai

Hi Friends, I have 5 checkboxes. What I want is..... I want to check 3 checkboxes so other 2 will be unchecked. After clicking the next button a table will appear and checked checkboxes will show in one column and unchecked will be another column. Can you give any idea …

Member Avatar for minitauros
0
166

The End.