4,124 Topics

Member Avatar for
Member Avatar for davy_yg

Why is it? Line 33:Expression is not an array or a method, and cannot have an argument list. Line 31: For i = 0 To totalItem Line 32: If (Session("Kode_" & i) = kode) Then Line 33: status() = True Line 34: End If Line 35: Next

Member Avatar for geniusvishal
0
90
Member Avatar for Buppy

So, i enabled mod expires to my web page. Here's the code i used: <IfModule mod_expires.c> ExpiresDefault "access plus 2 months" ExpiresByType image/x-icon "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 …

Member Avatar for cereal
0
180
Member Avatar for hallianonline

hello everyone i am facing a little problem I have a 3 dependent selectboxes and i want to save the selected values in the session so user can remember what category i selected before also it prints the last visited link here is my code pelase tell me what code …

Member Avatar for broj1
0
199
Member Avatar for mbarandao

Hello! I was wondering if someone can take a look at the following if and else statement and point out what I have written incorrectly. In its current form, I cannot get it to work. So, essentially, I'm trying to construct an if conditional statement within another if statement. $var_test …

Member Avatar for mbarandao
0
191
Member Avatar for Raghu88

Hi, I have written coding for coverting jsp page to excel.It is working in IE browser after downloading file is saved with .xls extension .But in firefox browser i am trying to download then it saves with .jsp extension.any one pls help me how to solve this issue? here is …

Member Avatar for LastMitch
0
456
Member Avatar for RascelleGrepo

Hi. I am working on my Online Examination project in my web development subject but I am having a hard time to code how to go back to my previous page where I put session on it. my online exam are categorize by subject then inside the subject there is …

Member Avatar for kindo
0
402
Member Avatar for eduardolucioac

I have a question at least interesting! Gentlemen, it is possible to encapsulate a page "classic asp" inside a page "aspx"? The goal is to receive the output (text) of a legacy "classic asp" and places it inside a page "aspx". In this case (more specifically) I want to get …

Member Avatar for LastMitch
0
469
Member Avatar for aldm

Hi, I have module that imports data from json file to hash. Json file is pretty big so I don't want loading to take place on every request because it takes some time. It would be best to do this just on server start. I have a class variable in …

Member Avatar for lambing
0
223
Member Avatar for bezzel.zubber

I want to maintain the session into html pages but I have problem of finding a way to pass the session variables into html pages. So this is my login.asp code. <%@Language="JavaScript"%> <html> <body> <% var Conn=Server.CreateObject("ADODB.Connection"); var DSN="DSN=file"; Conn.Open(DSN); var Rst=Server.CreateObject("ADODB.Recordset"); var sql = "SELECT nme,userid,userpwd FROM student WHERE …

Member Avatar for hometownnerd
0
235
Member Avatar for StefanRafa0

hello guys im trying to send email from java program but when i pressing the button i get this message: errorjavax.mail.AuthenticationFailedException: failed to connect, no password specified? and here is the code: String username = Username.getText(); String password = Password.getText(); final String username2 = "stefanrafaa@gmail.com"; final String password2 = "my …

Member Avatar for JamesCherrill
0
215
Member Avatar for M4trixSh4d0w

Hi, I'm new to php, but I'm trying to implement a basic user system on my site. I'm having some trouble keeping a PHP session when I change pages (or something like that) where the logged in varible (`id`) isn't showing up as being defined, so a logged-in user doesn't …

Member Avatar for M4trixSh4d0w
0
319
Member Avatar for t_thakar

Hi guys, I've built a basic MVC framework for my app it works as follows the app is accessible using only one file which is index.php then it generates the pages required in the backend and then store it in a variable and then echos it out. so if i …

Member Avatar for diafol
0
130
Member Avatar for venkyb47

Is any way to do user authentication without using mysql. One way I found is using session, but it is not recommended. Is it possible with text file? If possible how to do that and is secured? Thanks

Member Avatar for LaxLoafer
0
272
Member Avatar for diether.silverious

Hi guys good day, im a student and i want to practice my php skills, i have a big problem in arrays that i cant solve almost a week so i decided to attach the php files as well as its database.pls help me so that i can study this …

Member Avatar for diafol
0
443
Member Avatar for ngonix

Hi, i'm having a little problem with my php script. Here's the deal. I have 2 tables and I want to assign a post variable to a row in one table and then insert the id value of that table in another table. The script is as follows: clients.php <?php …

Member Avatar for ngonix
0
323
Member Avatar for josh.hetherington4

Hello, I am trying to create a a transaction, and to do this I need to parse in my Session data into my Database. My function looks as follows function createTransaction(){ // Insert into the transactions table $query1 = mysql_query("INSERT INTO transactions (mem_id, OrderDate, Ship_Phone, Ship_Address, Ship_City, Ship_County, Ship_PostCode, Ship_Country) …

Member Avatar for armie340
0
206
Member Avatar for Motifaithed

Hi Guys, Can you give me an idea how to secure a login page after logout wherein when I click the back button of the browser it will not redirect the page in the last page viewed, I read a lot of thread and saying that its all about session, …

Member Avatar for Motifaithed
0
339
Member Avatar for StefanRafa0

hello i have problem with sending emails i have good SMTP and port but the message cant be sendend gives me this error: Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1 and here is the code: final String username = "stefanrafaa@gmail.com"; …

Member Avatar for StefanRafa0
0
332
Member Avatar for George_91

I'm creating a website which requires a Login. When it logs in the system it creates a Session. But I don't know how to validate my next page. Because if the user types the name of the second page in the browser, it enters without problem. What I want is …

Member Avatar for Webville312
1
23K
Member Avatar for pritaeas

Wasn't sure yet whether to post this publicly. I've adjusted the PHP code snippet for the OAuth. Curl allows you to trap a redirect and this snippet just shows how to do that for the token. The regex searches for the redirect url in the returned header, it can be …

Member Avatar for pritaeas
2
558
Member Avatar for Sabyre

I'm using WebIM for chat support on a website. I would like to be able to setup a timer for when a client initiates a chat session, if an operator/tech does not respond within 'x' seconds I would like the page to redirect to another page where the client can …

Member Avatar for Sabyre
0
248
Member Avatar for thuogt

aving serious problems with headers and session variables. Read related posts but none helped me. I'm using sessions to store some info about the user logged in e.g. name, user_id, etc. To start with, let's say `$_SESSION['user_id']=6;`. Then let's sat I want to view someone's profile. There is a dropdown …

Member Avatar for pixelsoul
0
288
Member Avatar for nakor77

This snippet will allow you to easily work with session variables in your applications. This example is using a string type but it works the same for any data type, you would just need to change the default return value from string.Empty to something more appropriate.

Member Avatar for LastMitch
0
218
Member Avatar for scholarwithfire

Hello, I'm trying to use Dropkick Jquery select box plug in for my chained select box. However, the plug in only works for my first select box and the second select box did not show up. I have two php files, the form and the func.php. Any help would be …

Member Avatar for LastMitch
0
282
Member Avatar for Tinnin

Hi All, I'm trying to save an incoming email as a .txt document but I'm having some trouble with the VBA. My procedure is as follows: Sub ConvertToPlainAndSaveAs(Mymail As MailItem) Dim strID As String Dim objMail As Outlook.MailItem strID = Mymail.EntryID Set objMail = Application.Session.GetItemFromID(strID) objMail.BodyFormat = olFormatPlain objMail.SaveAs "C:\Users\Me\Documents\path\to\Test.txt", …

Member Avatar for Tinnin
0
144
Member Avatar for bLuEmEzzy

Hi guys please help; so I have this Login in my webpage when I'm doing it on my pc(vista and wamp) there is no error I can Login/out, but when it is hosted on the server(ubuntu and xampp) I am getting this error :( Warning: session_start() [function.session-start]: Cannot send session …

Member Avatar for Webville312
0
273
Member Avatar for scottfreevideos

I transferred my website from one server to another and copyied the website with the database and tried to put it all back together without luck. Now if you go to www.paramontelegal.com.au there is this error: Fatal error: Class 'CmsRegularTaskHandler' not found in C:\HostingSpaces\admin1\paramontelegal.com.au\wwwroot\include.php on line 272 if (! isset($CMS_INSTALL_PAGE)) …

Member Avatar for Squidge
0
595
Member Avatar for coder91

So on the page I have there is already an increment method in place to add to the count, but I need the option for the user to remove a count. A stored procedure is in place for the increment and Im assuming I can use another for the decrement …

Member Avatar for LastMitch
0
107
Member Avatar for Dhanish

Hi evry1, I am currently doing an assignment on a video streaming website where I need to register users, log them in and out, upload videos, stream them, comment on them, etc Everything works out fine just tat after some seconds my session gets killed automatically or should I say …

Member Avatar for LastMitch
0
975
Member Avatar for TIM_M_91

Ok so I have a class for all my database connections, what I want to do is populate my gridview from my select statment within my database class. How do I do this? Code can be seen below: Database.cs public static string DeleteChild(string Ssession) { string surname = string.Empty; cmd …

Member Avatar for LastMitch
0
104
Member Avatar for levijoseph
Member Avatar for lotpb

<?php session_start(); $_SESSION['form'] = $_POST; ?> <?php if(isset($_POST['First'])) { echo htmlentities ($_POST['First']); }?> <?php */?> <tr valign="baseline"> <td nowrap="nowrap" align="right">Last Name:</td> <td><input type="text" name="Last_Name" id="Last_Name" autofocus value="<?php $_SESSION['form']['Last_Name'] ?>" placeholder="last name" size="32" /></td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right">City:</td> <td><select name="LookupCity" id="LookupCity"> <option value="" <?php if (!(strcmp("", $_GET['City']))) {echo "selected=\"selected\"";} …

Member Avatar for broj1
0
484
Member Avatar for rubai

I want to store these submitted values. Can it be possible without database? using just array. I don't want to store values for a session. Just for long time unless deleted. <form id="form1" name="form1" method="post" action=""> <form id="form1" name="form1" method="post" action=""> <p> <label for="num1">Some text</label> <input type="text" name="num1" id="num1" /> …

Member Avatar for rubai
0
2K
Member Avatar for BrickZ28

Just looking for third set of eyes on this. I am getting this error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to, from, payload, amount, route, majcom, event, type, admin) VALUES ('', …

Member Avatar for ahmedhamdy
0
211
Member Avatar for gagan22

Hi All, When I was testing my site in mozilla I got the following issue I am setting session variable in my login1.php file and accessing it in hoa.php file. this process is working properly in IE but in MOZILLA I am not able to get the value of session. …

Member Avatar for lieky
0
1K
Member Avatar for Maideen

hi, i am very new in php programming. Pls help me how to store session variable into my sql database. Below is my code <?php function userIsLoggedIn() { if (isset($_POST['action']) and $_POST['action'] == 'login') { if (!isset($_POST['loginid']) or $_POST['loginid'] == '' or !isset($_POST['password']) or $_POST['password'] == '') { $GLOBALS['loginError'] = …

Member Avatar for Maideen
0
396
Member Avatar for ali3011

I'm developing a website.. actually i almost finished it, but i thought about creating a members area before launching it.. so i created a facebook app and facebook helpfully instruct me how to add a login button.. here's what i got so far <html> <head> <title>My Facebook Login Page</title> </head> …

Member Avatar for LastMitch
0
157
Member Avatar for sh4rif

Hello everyone I am running Ubuntu 12.04 compiling a c++ file which has the following code #include <iostream> #include <libusb-1.0/libusb.h> using namespace std; int main(){ //pointer to pointer of device used to retrieve a list of devices libusb_device **devs; libusb_device_handle *dev_handle; //a device handle libusb_context *ctx = NULL; //A LIBUSB …

Member Avatar for Moschops
0
315
Member Avatar for sgnark

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\trail\index.php:1) in C:\xampp\htdocs\trail\index.php on line 2 whenever i run this file.... i will get a warning like this... i will attach the login page... after i will logged in i will get this same warning.... …

Member Avatar for broj1
0
3K
Member Avatar for hatebin

Hi all ! 1. I'm developing a Database Web aplication with PrimeFaces, JSF frameworks. 2. I've allready implemented Managment Bean, Session Bean and EntityClass. 3. What's the problem ? I need to populate `<p:dataTable>` with data from Dbase, but I need filtering on dBase level, because I'm going to deel …

Member Avatar for LastMitch
0
193
Member Avatar for Hemanth.Satkuri

I am calling a Stored Proc in Oracle using Hibernate. Procedure: create or replace procedure GetStocks(email in VARCHAR2) is BEGIN execute immediate 'SELECT * FROM stock WHERE email=email'; END; Java Code Query query = session.createSQLQuery("CALL GetStocks(:email)").addEntity(Stock.class).setParameter("email", "abc@xyz.com"); System.out.println("QUERY:"+query.toString()); System.out.println("QUERY SIZE:"+query.list().size()); List result = query.list(); for(int i=0; i<result.size(); i++){ Stock st …

Member Avatar for riahc3
0
372
Member Avatar for samsylvestertty

Hi, I have developed an ASP site. I have a function to check the session's validity. I check whether the ReferrerURL is null and redirect to a session expired page if it is null. It works fine for all pages. But after a file download ( using the response.TransmitFile ) …

Member Avatar for LastMitch
0
224
Member Avatar for jaimin4829

Hi i am developing a website to downlod softwares online.From general page of softwares user is allowed to download software after login or register.after login it must be go to user panel's main download page with taking id of software on which a person has clicked..i code below at login …

Member Avatar for hometownnerd
0
205
Member Avatar for BrickZ28

Ok so this is gotten me. Im trying to get a sql insert to work only if 2 varibles do not equal each other. So easy right just compare the 2 varibles and if they arent equal do the code. Well even if the 2 are equal the code runs. …

Member Avatar for BrickZ28
0
307
Member Avatar for ebanbury

Hi I have successfully engineered a login.php system, complete with logout.php, forgotpass.php and the associated functions which go with that. My users can log in and log out of the system and go to the pages directed to them without a problem. I was then asked to create a second …

Member Avatar for ebanbury
0
133
Member Avatar for christie.smoot.3

Once I have logged in, the "loggedIn.aspx" page is to display: IP Address: Contact: Date: I am able to get the IP address to display, but really have no clue on how to show both the username and current date. This was a conversion from .asp to c#.net Here is …

Member Avatar for LastMitch
0
164
Member Avatar for dhayalanbalakrishnan

Guys I am trying To send a mail using C++ code i found from the net , when i compiled it it says In function `_Z13ChilkatSamplev': [Linker error] C:/Users/dhayalan/Documents/mail.cpp:10: undefined reference to `CkMailMan::CkMailMan()' [Linker error] C:/Users/dhayalan/Documents/mail.cpp:14: undefined reference to `CkMailMan::UnlockComponent(char const*)' [Linker error] C:/Users/dhayalan/Documents/mail.cpp:21: undefined reference to `CkMailMan::put_SmtpHost(char const*)' [Linker …

Member Avatar for Moschops
0
337
Member Avatar for alanso

hey guys i need help!! i am having problem with add cart...when i puchase and item it comes out this error "Response.Redirect("~/Payment.aspx?total=" + total_price)" bellow are my code. Imports System Imports System.Collections.Generic Imports System.Linq Imports System.Web Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Data.SqlClient Imports System.Data Partial Public Class Cart Inherits System.Web.UI.Page …

Member Avatar for alanso
0
141
Member Avatar for sophy27

So I have been able to post the comment in the page I am creating and that comment is also saved in the comment table in the database with the id of the picture but when i am in the first picture and I comment the comments are posted saved …

Member Avatar for LastMitch
0
268
Member Avatar for shibu2all

Hi, Can anyone please help me out .I am trying out to send a mail using JAVAMAIL API, While executing the jsp code on server it is throwing few exception error. <%@ page import="java.io.*,java.util.*,javax.mail.*"%> <%@ page import="javax.mail.internet.*,javax.activation.*"%> <%@ page import="javax.servlet.http.*,javax.servlet.*" %> <% String result; // Recipient's email ID needs to …

Member Avatar for stultuske
0
401

The End.