Forums

PHP

This topic is locked

Passing parameters in PHP

Posted 15 Dec 2003 22:57:35
1
has voted
15 Dec 2003 22:57:35 Ken Moore posted:
This is a bit complicated. I need to put the same form on 10 different virtual hosts. I can do this but I also need to pass the email address of the calling web page so I can tell the client of the contact.

Each of the 10 vhosts has the following:

The declaration is:
<?php
// include the shared file containing the email form generating function
include_once('/dir1/dir2/dir3/lib/php/com_send_ref.php');
?>

And the call on the vhost is:
show_email_form('$emailadd');


The one form that each of the 10 vhosts calls has the following:

<?php
//function to display standard email form
function show_email_form($submit_to) {
?>


The trouble is that the parameter being passed, $emailadd, from the calling page does not seem to be picked by the variable in com_send_ref.php called $submit_to.

Any idea? TIA

Ken

Reply to this topic