Re: Passing a url-specified value through a form
- From: "Phil" <blizz81@xxxxxxxxx>
- Date: 30 Jan 2007 11:59:35 -0800
On Jan 30, 1:47 pm, "P Pulkkinen"
<perttu.POISTATAMA.pulkki...@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Just to make sure: is the second script TARGET attribute of the form in
first script, as it should be? Are the OTHER visible or hidden form fields
availalbe/printable in the second script, as they should be?
The first script refers to the second as follows:
<form ACTION="formresult.php" METHOD="POST">
Do in the second script:
echo $_REQUEST['machineid'];
to make sure that you are receiving the form variable.
This shows blank, as it does in the email. It seems as though nothing
is being passed - the value echoes fine in the first script.
This next piece is directly from php documentation. It may or may not help
you...
<?php
$to = 'nob...@xxxxxxxxxxx';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmas...@xxxxxxxxxxx' . "\r\n" .
'Reply-To: webmas...@xxxxxxxxxxx' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
Thanks - I have the mail function itself working fine, but need to
find out how to correctly pass that variable from the first page.
.
- References:
- Passing a url-specified value through a form
- From: Phil
- Re: Passing a url-specified value through a form
- From: P Pulkkinen
- Passing a url-specified value through a form
- Prev by Date: Re: Passing a url-specified value through a form
- Next by Date: Re: [PHP] Parsing mail file
- Previous by thread: Re: Passing a url-specified value through a form
- Next by thread: Re: Passing a url-specified value through a form
- Index(es):
Relevant Pages
|