473,785 Members | 2,489 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
6 4999
On Sat, 6 Sep 2003 15:02:57 +0200, "Rudi Ahlers" <lo********@bon zai.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
change POST to GET

--
-- www.theSpear.net --
"Rudi Ahlers" <lo********@bon zai.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
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.c om...
On Sat, 6 Sep 2003 15:02:57 +0200, "Rudi Ahlers" <lo********@bon zai.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
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="DomainNam e" 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.c om...
On Sat, 6 Sep 2003 15:02:57 +0200, "Rudi Ahlers" <lo********@bon zai.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
On Sat, 6 Sep 2003 23:56:59 +0200, "Rudi Ahlers" <lo********@bon zai.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="DomainNam e" 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
"Andy Hassall" <an**@andyh.co. uk> wrote in message
news:7b******** *************** *********@4ax.c om...
On Sat, 6 Sep 2003 23:56:59 +0200, "Rudi Ahlers" <lo********@bon zai.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="DomainNam e" 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1961
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' error. When the form in the opener is submitted it reloads itself with the new data, domain stays the same. I have similar functionality in the site which works ok. The only thing to note is that the form being submitted is in an
12
5197
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 stored in the session. As the user proceeds to checkout, we switch over to https. This is all done on the same physical server, under the same domain (which has an SSL cert). The session ID is carried over fine - I can read the session ID from http...
8
6265
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 am using VB.net 2.0 any ideas? Here's my code Thanks in advance.
1
2497
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 people to POST data to. But the string returned back to the person who sent the POST message is embedded in XML Tags. for example http://mydomain.com/webserver.asmx/SendData?parameter=Hello World
4
1782
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: order or customer fails. I need match all domain values (order,customer and so... order@view, order@save, order@delete, customer@view, ect...)?
1
2803
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. Anyway here is the issue. I was trying to load external pages from content.mydomain.com into pages on web.mydomain.com. (I can not put all the pages into one place because the cma that my company uses only lets me put the text of the master page...
3
1306
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 ($domain=*.mydomain.com) For some reason, can't get the proper syntax so that sciprt will take. Thoughts?
0
1845
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 many approaches but neither worked. The latest code I have used is following: DirectoryEntry domainUser = new DirectoryEntry("LDAP://myDomain/CN=domainUser,CN=Users,DC=myDomain,DC=local"); DirectoryEntry computer = new...
0
1053
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: principal When adding an workstations I use: mydomain.com\administrator When I need access to the shared resource C$ I use: \\principal\c$
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9485
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9958
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2890
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.