473,796 Members | 2,729 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 5000
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
5198
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
2498
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
1783
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
2805
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
1307
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
10242
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10200
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
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...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6800
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4127
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
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
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.