By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Jul 16 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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)
Jul 16 '05 #2

P: n/a
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.

Jul 16 '05 #3

P: n/a
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)

Jul 16 '05 #4

P: n/a
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)

Jul 16 '05 #5

P: n/a
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)
Jul 16 '05 #6

P: n/a
"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.
Jul 16 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.