hi ! i need a function or something to get the page i'm on so that i can pass it in a variable inside a form. i know that referrer dosen't work too good so i want to try using a var. how do i do that or if someone has a better ideea i would be glad to hear it. 10x in advance
hi ! i use this to get the value of a row from a database
$string = "select * from voci where formid='$formid'";
$result=mysql_query($string);
$row=mysql_fetch_array($result);
$vociid = $row[vociid];
it works great but i have one problem i need to get the smallest value from all rows...
hi ! i have a form and i submit some values using post
in the form i use somehting like this
$nrvoci=$_REQUEST['nrvoci'];$i=0;
while ( $i<= $nrvoci){?>
<tr><td width="100">Nr. <? print $i ?></td>
<td width="100"><select name="fieldnr<?print $i?>"...
sleipnir214 i didn't said that your answer was bad i just said if he want to use globals=off in php.ini $_REQUEST will be the solution. I just showed him another solution. Sorry if i upset you it wasn't my intention. Best regards Ionut Popa
or you can use <a href="/somescript.php?foo=3">here</a>
and get the var with request if you want to work with globals off foo=$_REQUEST['foo'] hope this helps too
sorry about that here is the source code
#!/usr/bin/perl -w
use strict;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $headfile = 'header.txt';
my $footfile = 'footer.txt';
my $twfx_file = 'tplates.dat';
my ($uselock, @headinfo, $headline, $heading, @footinfo, $footline, $footer);
my...
but i did place a link to the code
on my computer i use my $filenumber ='1';
on my site my $filenumber = $ENV{'QUERY_STRING'};
to get the script use
http://www.totalwebfx.com/test/parse.pl
and the data file
http://www.totalwebfx.com/test/tplates.dat
for heder and footer...
please anyone knows what i'm doing wrong ? i'm new to perl and this is my first script. when i test it on my computer it works when i upload it to my website it dosent
P.S: scuse my bad english
on my computer i use my $filenumber ='1';
on my site my $filenumber = $ENV{'QUERY_STRING'};
to get...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.