http://intranet/signup.php?domain=mydomain returns no values – PHP

  php

Q(Question):

I tried the following: http://intranet/signup.php?Domain=newdomain.com, and
it doesn’t seem to return any values
In my script I have the following:
<?

print $_POST[‘Domain’];

$DomainName = $_POST[‘Domain’];
print $DomainName;

print $Domain."\n";
print $HTTP_POST_VARS[‘Domain’];

?>
I’m running PHP 4.3.3RC4
Am I doing this wrong, or do I need to set some options somewhere?

Kind Regards
Rudi Ahlers
Compassion is difficult to give away because it keeps coming back.

A(Answer):

On Sat, 6 Sep 2003 15:02:57 +0200, "Rudi Ahlers" <lo********@bonzai.org.za>
wrote:

I tried the following: http://intranet/signup.php?Domain=newdomain.com, and
it doesn’t seem to return any values
In my script I have the following:
<?

print $_POST[‘Domain’];

$DomainName = $_POST[‘Domain’];
print $DomainName;

print $Domain."\n";
print $HTTP_POST_VARS[‘Domain’];

?>
I’m running PHP 4.3.3RC4
Am I doing this wrong, or do I need to set some options somewhere?

$_GET[] for values sent in the URL.
$_POST[] for values posted through a form with method=’post’.

You’re using the wrong one above.


Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

A(Answer):

change POST to GET


www.theSpear.net
"Rudi Ahlers" <lo********@bonzai.org.za> wrote in message
news:3f**************@hades.is.co.za…

I tried the following: http://intranet/signup.php?Domain=newdomain.com,
and it doesn’t seem to return any values
In my script I have the following:
<?

print $_POST[‘Domain’];

$DomainName = $_POST[‘Domain’];
print $DomainName;

print $Domain."\n";
print $HTTP_POST_VARS[‘Domain’];

?>
I’m running PHP 4.3.3RC4
Am I doing this wrong, or do I need to set some options somewhere?

Kind Regards
Rudi Ahlers
Compassion is difficult to give away because it keeps coming back.

A(Answer):

Thanx a mil!!!
This worked like a bomb

Kind Regards
Rudi Ahlers
Compassion is difficult to give away because it keeps coming back.
"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:4t********************************@4ax.com…

On Sat, 6 Sep 2003 15:02:57 +0200, "Rudi Ahlers"
<lo********@bonzai.org.za> wrote:

I tried the following: http://intranet/signup.php?Domain=newdomain.com,
andit doesn’t seem to return any values
In my script I have the following:
<?

print $_POST[‘Domain’];

$DomainName = $_POST[‘Domain’];
print $DomainName;

print $Domain."\n";
print $HTTP_POST_VARS[‘Domain’];

?>
I’m running PHP 4.3.3RC4
Am I doing this wrong, or do I need to set some options somewhere?

$_GET[] for values sent in the URL.
$_POST[] for values posted through a form with method=’post’.

You’re using the wrong one above.


Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

A(Answer):

I now have another problem with this script. Below is the code, which is
part of a table, and it prints out the domainname, but there is a 1 at the
end. Why is that? And how do I get it away?

<TD>www. <?
if ($Domain == "blank") {
?><INPUT NAME="DomainName" TYPE="text" ID="DomainName"> <?
} else {
print print $_GET[‘Domain’];}?></TD>

Kind Regards
Rudi Ahlers
Compassion is difficult to give away because it keeps coming back.
"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:4t********************************@4ax.com…

On Sat, 6 Sep 2003 15:02:57 +0200, "Rudi Ahlers"
<lo********@bonzai.org.za> wrote:

I tried the following: http://intranet/signup.php?Domain=newdomain.com,
andit doesn’t seem to return any values
In my script I have the following:
<?

print $_POST[‘Domain’];

$DomainName = $_POST[‘Domain’];
print $DomainName;

print $Domain."\n";
print $HTTP_POST_VARS[‘Domain’];

?>
I’m running PHP 4.3.3RC4
Am I doing this wrong, or do I need to set some options somewhere?

$_GET[] for values sent in the URL.
$_POST[] for values posted through a form with method=’post’.

You’re using the wrong one above.


Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

A(Answer):

On Sat, 6 Sep 2003 23:56:59 +0200, "Rudi Ahlers" <lo********@bonzai.org.za>
wrote:

Newsgroups: comp.lang.php

I now have another problem with this script. Below is the code, which is
part of a table, and it prints out the domainname, but there is a 1 at the
end. Why is that? And how do I get it away?

<TD>www. <?
if ($Domain == "blank") {
?><INPUT NAME="DomainName" TYPE="text" ID="DomainName"> <?
} else {
print print $_GET[‘Domain’];}?></TD>

^^^^^ ^^^^^

The rightmost print does a print, and returns 1 (http://uk.php.net/print). The
other print then prints the second print’s return value, i.e. 1.


Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

A(Answer):

"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:7b********************************@4ax.com…

On Sat, 6 Sep 2003 23:56:59 +0200, "Rudi Ahlers"
<lo********@bonzai.org.za> wrote:

Newsgroups: comp.lang.php

I now have another problem with this script. Below is the code, which is
part of a table, and it prints out the domainname, but there is a 1 at
theend. Why is that? And how do I get it away?

<TD>www. <?
if ($Domain == "blank") {
?><INPUT NAME="DomainName" TYPE="text" ID="DomainName"> <?
} else {
print print $_GET[‘Domain’];}?></TD> ^^^^^ ^^^^^

The rightmost print does a print, and returns 1

(http://uk.php.net/print). The other print then prints the second print’s return value, i.e. 1.


Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

Small mistake, yet it can fool you around so much. Thank you for pointing
this out to me 🙂

Kind Regards
Rudi Ahlers
Compassion is difficult to give away because it keeps coming back.

LEAVE A COMMENT