Jump to content

index.php doesn`t start another php-file


L3P3000

Recommended Posts

Sorry,guys,just can`t get thru:

1.there`s a file index.php

<html>

<body>

<form action=/open.php>

<button  name=Jack value="150" type=submit>Send Form</button>

</form>

</body>

</html>

 

2.there`s another file open.php

<? echo $Jack; ?>

 

Press the button,in the address box it says:

http://mysite.net/open.php?Jack=150

 

But nothing happens,open.php doesn`t work.I got Denwer,open.php is in www.mysite.net.

 

Please,help.Thanx.

 

Link to comment
https://forums.phpfreaks.com/topic/262313-indexphp-doesnt-start-another-php-file/
Share on other sites

Is this from a book? If so I suggest you get a more up-to-date book to learn from. The code relies on register_globals which was depreciated in 5.3.0 and removed in PHP 5.4.0

 

Use of register globals was advised aginst as long ago as PHP Version 4.2 (2002) as this extract from php.net release history shows

 

Version 4.2.0

22-Apr-2002

■ATTENTION!! register_globals defaults to 'off' now !!!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.