problem with submit in php with> file?var=value

Troubleshooting with your custom scripts/programs installed on Polarhome.

Moderator: Moderators

problem with submit in php with> file?var=value

Postby ebaynet » Sun May 15, 2005 2:23 pm

in a php script ia have a form with a submit action...
Code: Select all
        echo '<form method="post" action=' . <?php echo $_SERVER['PHP_SELF'] ?> . '">';



well if i hit the submit button i receive ...

No input file specified.


on a url>> http://www.polarhome.com:713/cgi-bin/ph ... lags=11111

one Question is ... that ".../cgi-bin/php-cgiwrap/..." is that part of the url ok?


anyway i each time receive this message when i try opening a valid php file and just whant to send vars via url...


what is wrong?


Greetz
ebaynet
Newbie
 
Posts: 9
Joined: Sat May 14, 2005 1:28 am

Postby sjaz » Sun May 15, 2005 4:24 pm

No, the URL is wrong

http://www.polarhome.com:713/~username/cgi-bin/

EXAMPLE:

http://www.polarhome.com:713/~ebaynet/cgi-bin/test.cgi

Remember, you need to have a SHELL ACCOUNT for CGI to work.
User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 694
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK

Postby ebaynet » Sun May 15, 2005 10:57 pm

i dont need a shell account iam just wondering that a file locatet at ~usernam/public_html/file.php whein the line of code above is in where with....

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


so
Code: Select all
$_SERVER['PHP_SELF']


means to me the actual directory where the file that calls is located... not the cgi bin directory ...

btw
Code: Select all
<?php
$ipadresse ="$REMOTE_ADDR";
echo $ipadresse;
 ?>


^^^^ this code gives out uffin ... why not??? ist should showmy ip adresse when i connect...


Greetz
ebaynet
Newbie
 
Posts: 9
Joined: Sat May 14, 2005 1:28 am

Postby sjaz » Mon May 16, 2005 8:53 am

User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 694
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK

Postby ebaynet » Mon May 16, 2005 1:27 pm

built in the code above into ur index php on ur index.php riht on the top... than try to send data to the same index.php via form action post... u will see it gigecvs out

http://www.polarhome.com:793/~chaz/cgi- ... ar1=blabla

well that would it on my side:)

greetz
ebaynet
Newbie
 
Posts: 9
Joined: Sat May 14, 2005 1:28 am

Postby sjaz » Mon May 16, 2005 4:06 pm

The point is that cgi-bin is SHELL USERS only.
User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 694
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK

Postby ebaynet » Tue May 17, 2005 9:35 pm

ahh that means that a simple php file which receives any kind of varible via url is a cgi to you?????... sorry than iam wrong here :D ... there are many freehosters that offers less options polar home.. but when u sign in with them ... u will have the option to use them!!!!

^^^^^^^AND THATS THE POINT^^^^^^^

irgs sorry was a wasting of time... ur servers are also way to slow


bye

will not bother u anymore btw ... :lol:
Last edited by ebaynet on Tue May 17, 2005 9:44 pm, edited 1 time in total.
ebaynet
Newbie
 
Posts: 9
Joined: Sat May 14, 2005 1:28 am

Postby sjaz » Tue May 17, 2005 9:43 pm

No, I am not an idiot.

PHP IS NOT CGI.

You are running code from cgi-bin which is SHELL USERS only.
User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 694
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK

Postby ebaynet » Tue May 17, 2005 9:45 pm

thats what iam trying to tell u the file ISSS NOOOOOTTT located in cgi bin... just upload a shity html file and attach an ?var=blabla to the url hit return and wonder that u will be redirected to the cdi bin directory
ebaynet
Newbie
 
Posts: 9
Joined: Sat May 14, 2005 1:28 am

Postby afonic » Wed May 18, 2005 1:40 am

Yeah but it's the same as our servers for which you pay so much money are too slow. Our support sucks too as sjaz is trying to help you with your noobish problems but of course you couldn't appepriciate it because it's free as well.

We need such users, bye.
User avatar
afonic
Forum Admin
Forum Admin
 
Posts: 686
Joined: Tue Oct 14, 2003 11:11 pm
Location: Salonica, Greece


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 10 guests

cron