GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 15-Dec-2003, 06:05
ghyndman ghyndman is offline
New Member
 
Join Date: Dec 2003
Posts: 2
ghyndman is on a distinguished road

Forbidden You don't have permission to access Undefined index: ../PHP_SELF


Can any one help I'm only starting learning apache I'm trying to submit some data and i keep getting this message

Forbidden
You don't have permission to access /manual/database/<br /><b>Notice</b>: Undefined index: ../PHP_SELF in <b>c:/program files/apache group/apache/htdocs/manual/database/searchbyoffice.php</b> on line <b>4</b><br /> on this server.


--------------------------------------------------------------------------------

Apache/1.3.27 Server at Hyndman.uusrp.com Port 80



I have read other forums and they suggests that i set the register_globals to on I have check this and it is on alreadly.

Here is the code i'm using
<form action ="<?php echo $_SERVER['../PHP_SELF']; ?>" method="post">

can any one help
  #2  
Old 15-Dec-2003, 06:37
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Hello ghyndman,

Try this in your PHP code:

PHP Code:

<form action ="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> 


  #3  
Old 15-Dec-2003, 09:17
ghyndman ghyndman is offline
New Member
 
Join Date: Dec 2003
Posts: 2
ghyndman is on a distinguished road

Thanks


That worked great
Thank you for your help
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 08:53.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.