Jump to content

passing variables between forms


Recommended Posts

Hi there, I'm new to the PHP Freaks forum, but i thought i'd give it a shot to see if anybody here knows the answer or has any suggestions.

 

I'm trying to pass post data between forms - here is the receiving form.

 

<?php
   	$companyName = $_POST["companyName"];
    $information = $_POST["information"];
    $testimonial = $_POST["testimonial"];
    $weburl = $_POST["weburl"];
$localaddress = $_POST["localaddress"];
    $username = $_POST["username"];
    $password = $_POST["password"];
    $public = $_POST["public"];
    $username = $_POST["username"];

/**
*
*
* @version $Id$
* @copyright 2008
*/


?>
<html><head></head><body><p><?php echo $companyName; ?></p>
    <p><?php echo $information; ?></p>
    <p><?php echo $testimonial; ?></p>
    <p><?php echo $weburl; ?></p>
    <p><?php echo $localaddress; ?></p>
    <p><?php echo $username; ?></p></body></html>

<?php ?>

 

This form and the sending form works on our public web server but for some reason if i try and process the form locally using WAMP the output is returning:-

 


<html><head></head><body><p><? echo $companyName; ?></p>
    <p><? echo $information; ?></p>
    <p><? echo $testimonial; ?></p>
    <p><? echo $weburl; ?></p>
    <p><? echo $localaddress; ?></p>
    <p><? echo $username; ?></p></body></html>

Instead of the actual data contained within those variables.

 

I'm really in the dark as to why this is happening. Is it something to do with the way php is processing the form?

Link to comment
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.