using asp to write login page

2118 byte By dummyagain at 2007-12-5 22:11:48
I haven't written asp for many years and i almost forgot all the script...i have tried to write a login function using asp and mysql and get some errors...hope someone can help.login.asp<form id="form1" name="form1" method="post" action="check.asp"><p>Login</p><table width=...

how to specify the root directory of the web site?

219 byte By _mynameisno1 at 2007-12-4 23:57:03
<?php require("include/const.php"); ?><br/>In the quotation marks.<br/>"/" can't be used.<br/>I want to include the file in " http://mywebsite/include/", but I don't want to specify the website name.

How To create php page

124 byte By murali1in at 2007-12-4 10:39:22
Hello , <br/> im beginner in php. How to create a php page or function which i have send a ini file as parameter.

awk or sed command-line routine to solve this situation?

537 byte By ranadhir nag at 2007-12-3 19:25:51
We hava data file which has entries in this format:sap/base/parser/agent/wholeworld.cppThese have to be converted into :wholeworld.cpp|sap/base/parser/agent/ie <filename>|<path>This has to be done via command-line.and we cannot do a hard-coded awk -F/ print{$NF "|" $0"/"$1... etc.},as t...

Simulate HTML page

402 byte By lribeiro at 2007-12-1 0:34:57
Hello.I have a HTML page with 3 TextBoxes, the first with username, the second with password and the third to write XML code. Then there's a submit button that send the content to an ASP page.How can i, using VB (and if possible VBA Access), do this programatically in order to automate this pro...

Creating Directories

717 byte By Viral Smack at 2007-11-29 14:56:28
I'm creating a SYSTEM for PHP, and I can't figure this thing out.Language: PHP & MySQLEmail: viralsmack@gmail.comDescription:I'm creating a System for PHP, in which a user can submit his own "pages" to my website. He/She registers, Logs in, and then, has an option to create their own...

parsing a string

893 byte By hubabuba at 2007-11-27 0:19:25
I know this can be really simple for some of you out there, but I can't seem to get the function I want. I looked at php.net and can't seem the find the answer.I want to pull out a code out of a line that has a length of 3. I run file() line by line and each line looks like this : (here 2...

2 actions with same submit button

1735 byte By TDK at 2007-11-25 11:54:10
I have searched all over this forums and search engines but could not find the result, so I'll post the code and hopefully someone will understand what I want to do.I have a simple, 1 textbox form, that I want to save the text (a website URL) into a text file and then continue with the normal o...

Why does my page save a textarea wrongly?

1796 byte By Debbie-Leigh at 2007-11-25 11:54:07
Hi,I have a PHP page (page 1) with a textarea on it, which is saved to a database. I also have a validation page (page 2) that has the same value as the textarea posted to it, which it needs to compare with the database value.Unfortunately, when I save the value using page 1, it doesn't match t...

[PHP] end of a file..

694 byte By Rooting at 2007-11-25 11:53:51
hi friends..i'm now writting for a new problem in php..from a file as imput, i would every line make a variables,and the cicle must be stopped when the file end..to assign thge variable of te lines i use the explode function..as$file = "file.txt";$open = fopen($file "r");$context = fread($open,...

MySQL WONT UNINSTALL!!

239 byte By Josef_Stalin at 2007-11-25 11:53:37
I want to reinstall, and it won't uninstall. Deleting the program and a few registry settings didn't help me either.<br/>Since the program won't work, how can I manually uninstall it, and then bring in a fresh install?

Dijkstras algorithm with GET or POST

428 byte By klotz at 2007-11-25 11:53:26
Hello, i have a Problem using variables GET or POST. The dijkstra class doesn`t accept this.There is no output.For example:This doesn`t work: $fromClass=$_GET[fromClass];$toClass=$_GET[toClass];$dijkstra->findShortestPath($fromClass, $toClass); This works well: $dijkstra->findShortestPath(1, 5...

Pass Form Value on Click

210 byte By BeachBum at 2007-11-25 11:49:50
Hi All,<br/>How can I pass the value of a Checkbox when it is clicked to a hidden value in another form on the page?<br/>And if there is more then one checkbox clicked it will pass all checked values.

Call to a member function on a non-object

1148 byte By cpopa at 2007-11-25 11:46:23
Hello.I am new to PHP 5 OO, I receive the same error but i know where my problem might be. the proble is that i don;t know how to solve it :)So here is my scenario/code: I want to implement an object array.i have a class called Person:class Person{ var $m_strName; function __construct($p_strNa...

Problem in checkbox [PHP]

365 byte By manjunath1985 at 2007-11-25 11:41:00
I have a php page called viewdb.php which retrieves usernames from the database and displays it, and i have created a checkbox for each username.I want to pass the multiple selected checkbox values to the next page called as send_sms.php after i select a <option value=" http://send_sms.php">sms...

Perl $ENV{HTTP_COOKIE} problem

2398 byte By bretterson at 2007-11-25 11:40:35
I'm writing a perl script for a class of mine and I ran into a problem that has me and everyone else in the class stumped, including the teacher.My script is using cookies. I have it adding cookies, but that's working just fine. The problem has to do with reading cookies. I have it read...

getting my url

529 byte By Xeel at 2007-11-25 11:40:21
hi,Im doing this for the first time in my life and i almost dont know php so sorry for possible wrong terms. I need to do 2 things in importance order:1. get the url my page was accesed by (because i have several urls pointing to my page), and print it for ex.2. make a forward/redirect to another pa...

restricting access using sessions

1511 byte By monkeymafia at 2007-11-25 11:38:50
Hii have a login form , once logged in it takes the users to another page (useraccount.php). ive set the session, however i can still access useraccount.php without logging in. why is this happeninglogin form code:session_start();include 'dbconnect.php';if(isset($_POST['submit'])...

Alternatives to PEAR DB

131 byte By Laurio at 2007-11-25 11:38:32
As title really, what are the main alternatives and pros and cons of using them? Ive found ADOdb but cant really find any others :/

Use constant in create database command

1201 byte By sjcoder07 at 2007-11-25 11:36:20
Hello everyone: I am doing an exercise by using define function to define host, user, and password information. I couldn't see the debugging message after the databaseis created. I replaced line 1 with line 2, then i was able to see the debugging message. But I couldn't figure out why...

displaying MySQL data

3514 byte By monkeymafia at 2007-11-25 11:35:42
Hiim trying to make a basic content management system. i can insert data into the mysql database via a html form no problem. just having a little difficulty displaying/retrieving the data.When displaying the data i want it to be neatly formatted in a table, with the headings(which are fields from my...

How do I force a page to be re-validated?

611 byte By Debbie-Leigh at 2007-11-25 11:33:38
Hi,I'm trying to force a page to be re-validated every time someone views it, even when they click the back button. I'm currently using:header("Expires: " . gmdate("D, d M Y H:i:s", strtotime("-1 year")) . " GMT");header("Cache-Control: must-revalidate, post-check=0, pre-check=0");header("...

PHP - Call to a member function on a non-object in

1708 byte By tkstock at 2007-11-25 11:32:53
Hello,This is a simplified version of a shopping cart class that I've created. A cart object consists of cartline objects (which contain other stuff and have totals).It seems to accept new cartlines ok, and even get_cartline_count works fine. When I try to call get_cart, I get the following e...

question regarding nested IF-ELSE structure

3641 byte By sjcoder07 at 2007-11-25 11:32:15
Hello everyone: I am doing a exercise from Larry Ullman's book - PHP and MySQL for dynamic web sites. (chapter 3 P119 register.php) a) I couldn't figure out the if-else structure around if(empty($errors)) section. please see line 40 and line 49 Please help me to understand how it works...

Replace string in Shell scripting

306 byte By anandjk1 at 2007-11-25 11:31:56
Hi,I need to check if the starting or ending of the give string has a double quote and replace it with null.e.g. Input var="test string "is" string" Output var=test string "is" stringPlease help in this regardThanksAnand...

Strange Bug With Firefox, Php(mysql)

1621 byte By Lucky-8 at 2007-11-25 11:29:07
hey guys,i have writen some php scripts for a website with transacts with mysql database.... now i have used classes, lets say i defined all basic repetitive methods like connect, select db, and stuff like that in a file called mysql.php and i have written it as a class. Now when i define an object...

install curl

34 byte By kalaid at 2007-11-25 11:28:16
Hi guys<br/>How do I install Curl?

microsoft personal webserver

58 byte By kalaid at 2007-11-25 11:28:15
Hi<br/>How can I get Microsoft Personal Webserver to work?

[RESOLVED] SQL query & selection list

1086 byte By shipwreck99 at 2007-11-25 11:28:12
I need to to this:Create an asp page that contains a form that contains an xhtml selection list containing all the customer names as the option text & the customer ID as the value for the option. The selection list should be created by running an SQL query to obtain the data from the database. I...

Parallel port controller from php

221 byte By Petrusz at 2007-11-25 11:26:59
Dear You,<br/>Could you please give some advice how to write a php or Java script to be able to read or write the parallel port through the web? similar than used to be by Pascal<br/>Many Thanks,<br/>Peter

Changing php.ini in XAMPP

323 byte By shoaibi at 2007-11-25 11:24:59
i have this problem. i changed my php.ini a little, just changed some values, like post size and etc, stop the xampp and started it again (e.g. stop mysql,apache and then started them again) and now when i called phpinfo still the old value are displayed and the new values are effective, while php.i...

Perl - registration validation

420 byte By hsdhun at 2007-11-25 11:24:52
Hi all,I hope someone can help in here about the problem that I have. I have a web application using perl and I want to create some sort of validation using url which is the same as this site forum user registration which after you register, email will be sent to you and you have to click the link t...

SQL query

483 byte By shipwreck99 at 2007-11-25 11:24:18
I'm just not getting the following code to work:<% set conn =server.createobject("ADODB.connection")conn.open "warehouse", "****", "****"id = request.form("custID")sql = "Select OrderNumber, OrderDate, Shipped from orders"sql = sql & "where custID =" & idset rs = conn.execute(sql)%> Ther...

[RESOLVED] Opening something with opendir()

491 byte By sakurazuka at 2007-11-25 11:24:00
If i want to open some directory with the opendir function, can I input the path relatively to the script path? For example lets say I have a script.php file locateted in the directory 'C:\Server\www' - so it's path would be 'C:\Server\www\script.php'. Now then, if the scrip...

posting data to mysql table via form

5315 byte By monkeymafia at 2007-11-25 11:23:23
Hiim trying to send user inputted data from a html form into a mysql table.when i press the submit button it does not display any errors but the table is empty. i dont know whats wrong.heres my php connection code:<?php$db_host = "localhost";$db_user = "myuser";$db_pwd = "mypassword";$db_name = "...

mysql upload

1955 byte By davidjmorin at 2007-11-25 11:21:20
so ive been reading php.net about mysql and php. ive created a form that will upload person names and numbers. but what id like to do is add it so that i can have them upload pics/videos as well. what can i add to the form to do this? the form.html<html><body><form action="insert.php"...

Generating javascript through perl

656 byte By ahammad at 2007-11-25 11:21:16
Hello,I have a perl file that generates an html file to use on a webpage. I have to add some javascript to the html part of the perl file.I already have some code to do that, but here is the issue: the javascript needs to grab a parameter from the perl information.eg., lets say I need to run javascr...

Im new. How do I get the field names to show in my php mySQL search?

1608 byte By trustedruss at 2007-11-25 11:19:45
I can get the rows to display, I can make it only show certain rows but I can't figure out how to get the field names to display at the top of the columns so that when a user scrolls down, the field names stay there. I know I have to do some sort of header but can't figure out how and I�...

PHP programs

275 byte By davidjmorin at 2007-11-25 11:19:42
does anyone know of any programs like dreamweaver that will write php? I learned html by using such programs and now im trying out php. i know im way behind haha. but a program where you can just design the page and it auto writes the source would be great. any suggestyions

Uploading With Sql And Php

416 byte By davidjmorin at 2007-11-25 11:19:41
Hey everyone. ive search google for this and found a few sites but dont have a grasp on it. what i want to do is use mysql to upload data to and then pull the data from the server to display the results that people can download. Sorta like a very simple youtube. without the flash. i have the script...

[RESOLVED] linking in php

6368 byte By davidjmorin at 2007-11-25 11:18:30
how can i place links in this code that will auto populate the link to the displayed jpg, or avi?<!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" lang="en" xml:lang="en"><...

cron job and bash

515 byte By bobo at 2007-11-25 11:16:58
I had a very nice 1 liner bash command running in a cron job to backup all of mysql, then it would compress it in .gz, then finally email it to me.I can't find that website anymore so I'm looking for a bash guru. The line would look something like mysqldump -udbusername -pdbpassword db_nam...

problem in calling C function from perl file

2537 byte By Himanshu_shukla at 2007-11-25 11:16:54
Hi Guys,I'm getting following error while running the perl program and calling C function from it. Would anyone please tell me what is the problem ?Thanks,Himanshu------------------------C:\MTF>perl C_func.plMicrosoft (R) Program Maintenance Utility Version 6.00.8168.0Copyright (C) Microso...

[RESOLVED] php upload and read

676 byte By davidjmorin at 2007-11-25 11:15:05
so i was wondering if anyone had a script that i could use to upload files to folder a. and then on a seperate page have what was uploaded to folder a output with links to download files from said folder. ive been tryng now for over a week and cannot figure it out. i am very new to php so the more e...

reading from folder

568 byte By davidjmorin at 2007-11-25 11:14:00
hey everyone i was wondering how i can pull files that are uploaded to folder and have them post on a page IE:i have folder usercontent-where content is uploaded toand html doc content.html-where content should displayalso upload form at userupload.php-the formhow can i get content loaded into userc...

Post Text File into ASP Web Page

1127 byte By lribeiro at 2007-11-25 11:11:20
Hello. I'm trying to write a script o post the content of a text file to a ASP web page. I need to provide username and password to log on to that web page. This ASP web page also needs a digital certificate to authenticate. I'm using the code bellow but i get the message "a connection to...

Sending Newletter automatically

665 byte By g1m0v0n5 at 2007-11-25 11:09:35
Hai, I am working in Php and Mysql 5.0. I need to create an online newsletter.I have to send newsletter (Html files or Email with a pdf file as an attachment) to all email ids which are stored in an online database. The html newsletter and pdf file are stored in a folder on the webspace.I login to...

Scanning a directory for XML files and reading them

1345 byte By ahammad at 2007-11-25 11:06:52
Hello,I would like to scan a certain directory for XML files. Then I want to take in every XML file, read it, and stores the contents as a string in an array. For example, if the directory has file1.xml, file2.xml, and file3.xml, they would all be scanned and read. Then, all the contents of file1.xm...

need help with php registration script

3432 byte By cjmcfg at 2007-11-25 11:05:14
I know nothing about php code but i do some other code and some coding basics. I was given this registration script and it has a "Parse error: parse error, unexpected '<' in /homepages/6/d122159774/htdocs/stjohns/portal/register.php on line 79"I can't seem to find it...Here is my c...

Client does not support authentication protocol

206 byte By kku at 2007-11-25 11:05:06
Hi,<br/>plz can any one fix it'<br/>I upload my web site but it will showing sql error<br/>i-e<br/>"Client does not support authentication protocol requested by server; consider upgrading MySQL client"