Re: Passing a url-specified value through a form



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.

.



Relevant Pages

  • Re: q about LWP:UserAgent credentials()
    ... > objects that exist within Perl is acting as an HTTP client. ... call a HTTP::Request to the second script from within the processing ... changes to it to allow the first script to call it directly. ... or just emulate the CGI environment when he call it. ...
    (comp.lang.perl.misc)
  • how to do a non-blocking fgets?
    ... I need to read a result of the first script (that takes some time to ... run) from the second script so that the first script doesn't block the ... instead the first fgets blocks the processing ... I use php 4.3.4 on windows xp ...
    (comp.lang.php)
  • Re: OFS use
    ... In the first script you're altering a field and so forcing a recompilation of ... That's not true in the second script so $0 is untouched. ... "$1=$1" to just force the FS to OFS change to occur. ...
    (comp.lang.awk)
  • Re: newbie question: passing variable values between PHP scripts via POST
    ... > POST operation. ... I want the value of a variable $n in the first script ... > to be visible to the second script. ...
    (comp.lang.php)