Pages: Previous12
Current Page: 2 of 2
Re: Problem with $_POST
Posted by: Jixar (---.tek.sdu.dk)
Date: March 03, 2008 12:20PM

The problem still exists, I just installed it on a < 2 months new machine, with totally fresh install of XP smiling smiley

It seems that a simple, very simple script works:
<?php
	echo "<pre>";
	print_r($_POST);
	echo "</pre>";
?>
<form action="index.php" method="post">
	<input type="text" name="key">
	<input type="submit">
</form>



Edited 2 time(s). Last edit at 03/03/2008 02:04PM by Jixar.

Options: ReplyQuote
Re: Problem with $_POST
Posted by: hambuler (---.cpe.net.cable.rogers.com)
Date: March 03, 2008 05:08PM

You need to change onClick="loginFormSubmit(this.form)" to onClick="loginFormSubmit(document.loginform)"

Options: ReplyQuote
Re: Problem with $_POST
Posted by: Jixar (---.ds1-od.adsl.cybercity.dk)
Date: March 03, 2008 08:35PM

hambuler => It doesn't do anything sad smiley

I just noticed something, when you hit refresh, normally a alert comes up, and tells you that you are reposting something.. But it doesn't do that on the local site? smiling smiley

Options: ReplyQuote
Re: Problem with $_POST
Posted by: Jixar (---.ds1-od.adsl.cybercity.dk)
Date: March 03, 2008 08:57PM

Yes, well.. It seems the problem has been solved.. grinning smiley

The problem was the programmer (me)..

I don't know if you noticed i was using something to controll my constants, like this:
Constants::returnValue("siteURL"winking smiley;

It returns the basic url of the site:
http: //www.mydomain.dk/mytestfolder/

but when i made it run on the local folder i wrote following:

http: //localhost/mydomain.dk/mytestfolder

The difference is the missing slash at the end..

http: //localhost/mydomain.dk/mytestfolder?action=logon
^ is not valid..

However the following is valid:
http: //localhost/mydomain.dk/mytestfolder/?action=logon

Thank you for all the help you gave me smiling smiley

[Spaces added in URL to prevent system to make links]



Edited 1 time(s). Last edit at 03/03/2008 08:58PM by Jixar.

Options: ReplyQuote
Re: Problem with $_POST
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: March 03, 2008 09:25PM

maybe you could give me an apology??? lol


glad u got it sorted


happy coding

Options: ReplyQuote
Re: Problem with $_POST
Posted by: Jixar (---.ds1-od.adsl.cybercity.dk)
Date: March 03, 2008 09:27PM

Apology granted smiling smiley

But please, do not write in cabs because it won't get you the results you want.

Options: ReplyQuote
Re: Problem with $_POST
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: March 03, 2008 09:35PM

sorry. i have to admit my gf was annoying me last night smiling smiley

Options: ReplyQuote
Re: Problem with $_POST
Posted by: Jixar (---.ds1-od.adsl.cybercity.dk)
Date: March 03, 2008 09:37PM

That is what they are for smiling smiley

[xkcd.com]

Options: ReplyQuote
Re: Problem with $_POST
Posted by: yfastud (Moderator)
Date: March 05, 2008 12:51AM

Since you guys mention about this, check this out to see how women brain work ;-)

[jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


Sorry, only registered users may post in this forum.