From owner-freebsd-questions@FreeBSD.ORG Wed Jan 25 19:17:32 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1431716A428 for ; Wed, 25 Jan 2006 19:17:32 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from mta13.adelphia.net (mta13.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 654EE43D75 for ; Wed, 25 Jan 2006 19:17:31 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from barbish ([69.172.31.117]) by mta13.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with SMTP id <20060125191730.YEUP8904.mta13.adelphia.net@barbish> for ; Wed, 25 Jan 2006 14:17:30 -0500 From: "fbsd_user" To: "freebsd-questions@FreeBSD. ORG" Date: Wed, 25 Jan 2006 14:17:28 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Importance: Normal Cc: Subject: navigating between html & php X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fbsd_user@a1poweruser.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2006 19:17:32 -0000 Hello list. I am running FreeBSD 6.0/apache 1.3.33_2/php 4.4.0/mysql 4.0.25. I am beginner in coding php. In past only added php code to count visitors to home page. Now I want to build application to host user web site as directory on my server. I want to use native html as much as possible in what is seen by user's browser and keep the real functional php code in a common file on my server so it does get seen by anyone. At this point I am just creating the navigation base code to implement this concept. Below is listed 2 files. page1.php is the native html page1 passing a form to the common main.php code workhorse. The idea is main.php will receive the form from page1.php and process the make dir and then return to the page1.php to show any errors or goto page2.php if make dir worked. In main.php the line to check the dir_name for 0-9 a-z gives error and I don't know what is wrong. Also I can not find any function in php manual to (goto or branch to) the native html page I want. Is what I am trying to do legal? Is there a better way to do this? Thanks in advance. page1.php

 

 

Setup your personal website by first chooseing your 8 character website name.

Web Name:

main.php