Re: Passing a url-specified value through a form



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?

Do in the second script:
echo $_REQUEST['machineid'];
to make sure that you are receiving the form variable.

This next piece is directly from php documentation. It may or may not help
you...

<?php
$to = 'nobody@xxxxxxxxxxx';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@xxxxxxxxxxx' . "\r\n" .
'Reply-To: webmaster@xxxxxxxxxxx' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>


.



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)
  • Re: Passing a url-specified value through a form
    ... Are the OTHER visible or hidden form fields ... availalbe/printable in the second script, ... The first script refers to the second as follows: ... Thanks - I have the mail function itself working fine, ...
    (php.general)
  • 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)