473,545 Members | 524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Latest Bytes Forum

Support forums for various IT topics. Programming languages, databases, systems, applications and more. Subscribe to a community, participate, ask, share your expertise and network.
 
1
2,575
thread by: Steven | last post Jul 16 '05 by: R. Rajesh Jeba Anbiah
Hello, I used a form to collect some data, and then use php script to verify the data before send it to database. If the php script found some errors in input data, it will use header(Location:register.php) to send it back to the same form page. Is there a way to keep those valid data and only ask user to input the data with errors?
2
10,170
thread by: Dave Mateer | last post Jul 16 '05 by: Dave Mateer
Hi Why does the following code allow me to keep the same session when in the same sub domain (ie admin.localhost), yet not when I goto another related domain eg main.localhost? I would like to have the same session on the related domain. I bet the solution is really simple <grin>!... Kind Regards
10
4,197
thread by: James | last post Jul 16 '05 by: Ian.H [dS]
What is the best method for creating a Web Page that uses both PHP and HTML ? <HTML> BLA BLA BLA BLA BLA
0
2,872
thread by: Madhusudan Singh | last post Jul 16 '05 by: Madhusudan Singh
Hi I wonder if there is a clean way of using https with header() in PHP ? I am using statements like header("Location: script.php?arg1=argvalue") to transfer control in my application. Thanks, MS
1
2,586
thread by: Steve Fitzgerald | last post Jul 16 '05 by: RG
I use sessions as part of my login script. One of the values passed is userid. The userid seems to pass fine into the main part of the page, but when I use userid in a navigation include I cannot get it to display. Here' what I mean. Code for admin navigation: function adminMenu(){
8
4,397
thread by: Beowulf | last post Jul 16 '05 by: lawrence
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their profile info (Name, hobbies etc) and attach an image, which will upload the record to a mySql db so users can then either view all profiles or query.. I.e. show all males in UK, all femails over 35...
0
2,115
thread by: J.D. Schuitemaker | last post Jul 16 '05 by: J.D. Schuitemaker
I need to change a html-tag into a call to a script. Tag is like this: <img src="someattach.php?s=3421543&id=20103" border="no"> Has to be changed to: <?php include("someattach.php?s=3421543&id=20103") ?>
4
6,187
thread by: CJ Oxx | last post Jul 16 '05 by: CJ Oxx
I have a problem with browser charset recognition when using PHP 4.1.2 (this is the PHP version which our hosting company provides). For charset recognition, I use the following meta-tag: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Here is what I have tried so far: - Regular html page: charset is properly...
1
20,622
thread by: Franz Josef Fuka | last post Jul 16 '05 by: Jon Kraft
mysql database "myshop" table "einheit" "id" field int(255) auto_increment "name" field varchar(255) =============== = id = name = =============== = 1 = Stück = = 2 = Packung= = 3 = kg =
1
2,359
thread by: cmosser | last post Jul 16 '05 by: CC Zona
Since I had to change from ATT to Comcast internet service, I cant use my old newsgroup service. Can anyone rec a good free newsgroup service so that I dont have to use google groups to post and read messages cmosser
3
2,316
thread by: David Hickman | last post Jul 16 '05 by: David Hickman
Hi all, This is a newbie question but I have been struggling with this for ages. I have a document with 2 separate <?php sections of code. I would like to declare some variables in the first section and then read these in the second but do not seem to be able to do this. Can someone please let me in on how! :) Thanks in advance for...
3
3,464
thread by: JW | last post Jul 16 '05 by: Paul Liversidge
It took me a lot of trial and error to get text from an HTML form into MySQL to account for quotation marks being entered. I came up with the following. It works fine but I was wondering if this is the best way. Here are the relevant snippets: 1) User enters data via post.html: <form method="POST" action="post_confirm.php" name="form">...
1
3,787
thread by: aquilo at hotmail.com | last post Jul 16 '05 by: Ian.H [dS]
When I use the mail function the message takes one hour to arrive. I found that if I turn my clock forward one hour (to match the time on the server) the message arrives quickly. The server is located in a different time zone, actually one hour different. So it seems like, if the time zone of the server and the time zone of the client are...
2
17,838
thread by: shake | last post Jul 16 '05 by: MeerKat
I have to develop an application sounds like this:- User is allow to access a form (is actually a test/quiz) within a specific time frame, let say 45 minutes. After this 45 minutes, if the user has not yet click the submit button to submit the form, the system need to automatically submit it. So, can anyone teach me how to check the time...
1
3,019
thread by: sky2070 | last post Jul 16 '05 by: MeerKat
<?php $user="root"; $pass=""; $db="inventory"; $link=mysql_connect("localhost",$user,$pass); if(!$link) die("couldn't connect to mysql"); print "successfully connected to mysql<p>"; mysql_select_db($db) or die("i cant take it anymore ".mysql_error());
3
6,563
thread by: Marcus | last post Jul 16 '05 by: David Walker
I'm really confused with something I never had any problems with before... I have a form with a textbox called password. On the second page that $password is posted to, if I test isset($password) after a submit, it always evaluates to true, regardless of whether or not anything was entered into the textbox... echoing the value simply echoes...
8
3,645
thread by: Lothar Scholz | last post Jul 16 '05 by: lawrence
Because PHP5 does not include the mysql extension any more is there a chance that we will see more Providers offering webspace with Firebird or Postgres Databases ? What is your opinion ? I must say that i like it to see mysql replaced by a real database (stored procedures etc.)
1
2,113
Why
thread by: Jane Doe | last post Jul 16 '05 by: RG
Hi, Under Windows, since I upgraded PHP from an older 4.x version to the latest and greatest (4.3.1), includes stopped working: <?php include "/banner.php"; ?> Here's what I get when calling any PHP page that has this snippet:
2
2,439
thread by: Stijn Goris | last post Jul 16 '05 by: Kevin Thorpe
hi all, I have this problem that I cant solve. I have created an agenda (http://28edegem.scoutnet.be/agenda.php) . The agenda contains events and birthdays of the members. I query the events and birthdays per month and sort them on date. This method works fine for the events since they are all for the same year (eg 2003) but doesnt work...
2
2,363
thread by: Topspin | last post Jul 16 '05 by: Shawn Wilson
I'm running PHP on Windows, but that's just the local test... in production it will be on Apache. I am not using PHP as a CGI. I want to perform redirection of the user's browser if the user isn't a valid user. I don't want to use the refresh meta tag or javascript to do this. I want to do this with some sort of server command. Does...
1
2,455
thread by: wj | last post Jul 16 '05 by: Roland Roberts
Hi all, I want to use 'location' to redirect to link to another page: <?php header("Location: http://localhost"); ?>
6
13,697
thread by: Jamie Wright | last post Jul 16 '05 by: Pedro
Hey there, I've been searching for a way to add up a number of numbers from a MySQL database and have come up with the SUM() statement, but I'm not really too sure how to use it. The manual doesn't give me much in the way of assistance... SELECT SUM(`length`) WHERE 1 doesn't work at all. Any ideas? What am I doing wrong, I'm fairly...
1
3,623
thread by: joost | last post Jul 16 '05 by: David E. Smith
Hello, I'm kind of new to mySQL but more used to Sybase/PHP What is illegal about this query or can i not use combined query's in mySQL? DELETE FROM manufacturers WHERE manufacturers_id NOT IN ( SELECT manufacturers_id FROM products )
1
4,236
thread by: Jayaprakash Rudraraju | last post Jul 16 '05 by: Andy Jeffries
Hi, All php files in document root work fine. While php files in sub-directories of document root shows the php source like a text file. I have looked for help and also FAQ. Did I miss anything during the installation. I have installed both apache and php on Linux many times before actually figuring out that all my php files generate...
0
1,652
thread by: Lee Mahan | last post Jul 16 '05 by: Lee Mahan
I am attempting to download files (usually images) for viewing with either the user's browser or a program associated with the file type. Unfortunately, this requires that it works in MSIE (works ok with Mozilla and Opera) but when I attempt to use MSIE it offers a choice of either opening it or saving. Opening the message, causes the image...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.