Jump to content

Recommended Posts

I am having trouble including a layout to my page. When I use the PHP Include function, it just places the layout above the information instead of placing the information inside the layout. I have an open cell on the layout to place the information in, but it is not working. HELPPP!

 

http://typrofiles.110mb.com/profiles/createpro.html

 

When you insert your information it goes to a PHP page where all your information is displayed that you entered. I want the PHP to go inside the layout. Any help would be greatly appreciated.

 

--

DJ

Link to comment
https://forums.phpfreaks.com/topic/49137-solved-php-include/
Share on other sites

I know, but how do I get information to go directly into the layout with inserting the layout on to the page?

 

Here is the code.

 

<?php

$name = $_POST ['name'];

$gender = $_POST ['gender'];

$age = $_POST ['age'];

$sign = $_POST ['sign'];

$height = $_POST ['height'];

$btype = $_POST ['btype'];

$ethn = $_POST ['ethn'];

$smoke = $_POST ['smoke'];

$drink = $_POST ['drink'];

$langue = $_POST ['langue'];

$religion = $_POST ['religion'];

$country = $_POST ['country'];

$sp = $_POST ['sp'];

$oaf = $_POST ['oaf'];

$enter = $_POST ['enter'];

$ho = $_POST ['ho'];

$cit = $_POST ['cit/tow'];

$photo = $_POST ['photo'];

?>

<?php

include("menu.php");

echo "Name: $name<br />";

echo "Gender: $gender<br />";

echo "Age: $age<br />";

echo "Sign: $sign<br />";

echo "Height: $height<br />";

echo "Body Type: $btype<br />";

echo "Ethnicity: $ethn<br />";

echo "Smoke?: $smoke<br />";

echo "Drink?: $drink<br />";

echo "Language(s) Spoken: $langue<br />";

echo "Religion: $religion<br />";

echo "Country: $country<br />";

echo "State/Province: $sp<br />";

echo "City/Town: $cit<br />";

echo "Outdoor Activities/Fitness: $oaf<br />";

echo "Entertainment: $enter<br />";

echo "Hobbies and Other: $ho<br />";

echo "Photo: $photo<br />";

?>

Link to comment
https://forums.phpfreaks.com/topic/49137-solved-php-include/#findComment-240742
Share on other sites

Ok, I am trying to get the information that someone enter's to insert inside the layout using the include funtion. I do not want to insert the layout on the PHP page because it causes a crap load of problems.

 

I want this information to go inside the cell in the layout.

 

<?php

include("menu.php");

echo "Name: $name

";

echo "Gender: $gender

";

echo "Age: $age

";

echo "Sign: $sign

";

echo "Height: $height

";

echo "Body Type: $btype

";

echo "Ethnicity: $ethn

";

echo "Smoke?: $smoke

";

echo "Drink?: $drink

";

echo "Language(s) Spoken: $langue

";

echo "Religion: $religion

";

echo "Country: $country

";

echo "State/Province: $sp

";

echo "City/Town: $cit

";

echo "Outdoor Activities/Fitness: $oaf

";

echo "Entertainment: $enter

";

echo "Hobbies and Other: $ho

";

echo "Photo: $photo

";

?>

Link to comment
https://forums.phpfreaks.com/topic/49137-solved-php-include/#findComment-240749
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.