If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2012
    Member #
    Hi, I am by no means an experienced developer but I have used php include before with no troubles. Now, however, I am running into a bit of a problem.

    I am trying to php include a registration form within my webpage template. I am using dreamweaver. When I am in design view, I see the form showing up, however when I switch to live view, and when I uploaded it onto my server and viewed it there, the registration form does not show up.

    When this:
    <?php include ("register.php");

    didn't work,

    I used this:
    [SIZE=16px]<[/SIZE][SIZE=16px]?[/SIZE][SIZE=16px]php $path [/SIZE][SIZE=16px]=[/SIZE][SIZE=16px] $_SERVER[/SIZE][SIZE=16px][[/SIZE][SIZE=16px]'DOCUMENT_ROOT'[/SIZE][SIZE=16px]][/SIZE][SIZE=16px];[/SIZE][SIZE=16px] $path [/SIZE][SIZE=16px].[/SIZE][SIZE=16px]=[/SIZE][SIZE=16px]"/common/header.php"[/SIZE][SIZE=16px];[/SIZE][SIZE=16px] include_once[/SIZE][SIZE=16px]([/SIZE][SIZE=16px]$path[/SIZE][SIZE=16px])[/SIZE][SIZE=16px];[/SIZE][SIZE=16px]?[/SIZE][SIZE=16px]>[/SIZE]

    and still no luck. I was thinking maybe it's because I didn't define any size parameters for where the form should go, but that doesn't really make too much sense as to why that would cause it to not show up. Please help me!


  3. #2
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Member #
    141 times
    Did you upload register.php as well as the page you're working on?
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Cottage Grove, Minnesota
    Member #
    726 times
    Both PHP scripts are stored in the same directory? Is that correct.

    If so, what happens if you just run "register.php" by itself?


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 08:20 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: