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. 6 4931
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)
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.
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)
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)
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)
"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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Rob |
last post by:
Hi,
I have a popup which updates a field in the opening window then
submits the form the field is in. If I try to use the popup again
(performing the same action) i get an 'Access is denied'...
|
by: Grunff |
last post by:
I'm experiencing an interesting problem with carrying a php session over
from http to https. Much googling later, I'm still stuck.
The application is an online shop, where some user data is...
|
by: Sameh Ahmed |
last post by:
Hello there
I need to get a list of domain controllers to a domain I bind too using it's
name rather than the DN.
I am trying a query looking for objectClass=nTDSDSA but this returns 0
results
I...
|
by: arfeengodil |
last post by:
Hi,
I need to have a web application such that other applications should be
able to do send data to it using HTTP Post.
So I created a ASP.NET web service and defined a web method for other...
|
by: luca.milan |
last post by:
Hi, have a problem with this regex:
^(?<target>order|customer)@(?<action>view|save|delete)$
With this options: order@view, order@save, order@delete or customer
work fine, but with the target:...
|
by: vegetablebeef |
last post by:
I know cross domain stuff has been discussed here before but I could not find a answer to my issue. I am a designer that does "hunt and peck" coding so again please excuse my lack of technical savy....
|
by: affiliateian |
last post by:
I am pretty new to php. Can anyone tell me what the proper syntax is
for checking a particular domain from a web form? For instance, I am
looking for an if statement that accomplishes this:
if...
|
by: el dio |
last post by:
Hi, i'm trying to add domain user to a local Windows group.
Imagine I have domain 'myDomain', domain user 'myDomain\domainUser', my computer is 'myComputer', local group is 'Guests'.
I used...
|
by: SysProfile |
last post by:
Hi people, I'm currently trying get the name of my Primary Domain (Windows 2003 Server) and the proper name, from a remote computer.
This is an example
domain: mydomain.com
computer name:...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |