Jump to content
php.lv forumi

little help


FnTm

Recommended Posts

Man ir shaada te probleema... Maaciibu procesaa... izmantojot e-book "Php soli pa solim" Pie formu scriptiem atduuros pret probleemu kad kods kautko neizdara liidz galam... taa kaa esmu galiigs iesaaceejs un zinu tikai to kas ir biijis uzrakstiits peedeejaas 2 nodaljaas tad prasiishu padomu jums

 

http://www.home.lv/pupolitis/php/3_1.htm

 

sheit var atrast to lpp graamataa un pashu scriptu.. vai buutu kaads jauks cilveeks kursh man vareetu paskaidrot kas sheit par kljuudu??

Link to comment
Share on other sites

http://foto.inbox.lv/fantomy/php-probleemas

shajaa albuumaa es esmu ielicis bildes ar probleemaam kas notiek.. un tas ir tikai saakums. KKo izlabojot rodas citas....

 

Bet nu cerams kad kaads kko no shitaa sapratiis un pateiks

 

P.S. Savu failu droshiibas peec, dazhas adreses esmu izdzeesis

 

P.S.2 a ar to global ir taa, kad man uz pc i OmniSecure 3.0 Alpha 4...

Link to comment
Share on other sites

yepp, problēma ar register_globals.

pamēģini mainīgā $vards vietā izmantot $_POST['vards'] vai $_GET['vards'] un tā ar visiem no formas padotajiem mainīgajiem.

Lai nevajadzētu pārāk daudzās vietās labot, vari izlabot tikai sākumā:

$vards = $_POST['vards']

$mainigaisX = $_POST['mainigaisX']

utt.

Link to comment
Share on other sites

Vareetu luudzams paraadiit kaadaa scriptaa kaa tas fiziski izskataas? Man meegjinot kko mainiit met aaraa shitaadu

 

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in \htdocs\generate.php on line 11

 

Edit: Kur var nomainiit to register_globals no ON uz OFF?? jo man vinjsh on un ir veelme izsleegt

Edited by FnTm
Link to comment
Share on other sites

<?php
//Datu apstrādes daļa
if(isset($_POST['lauks']){
$lauks = $_POST['lauks'];
echo "Tu tikko ievadīji $lauks";
}
else { //Datu ievades daļa
?>
<html>
<head>
<title>Megalapa</title>
</head>
<body>
<form method="post">
<input type="text" name="lauks"/>
<input type="submit" value="Nosutit"/>
</form>
</body>
</html>
<?php
}
?>

Link to comment
Share on other sites

<?php
//Datu apstrādes daļa
if(isset($_POST['lauks']){
$lauks = $_POST['lauks'];
echo "Tu tikko ievadīji $lauks";
}
else { //Datu ievades daļa
?>
<html>
<head>
<title>Megalapa</title>
</head>
<body>
<form method="post">
<input type="text" name="lauks"/>
<input type="submit" value="Nosutit"/>
</form>
</body>
</html>
<?php
}
?>

25519[/snapback]

 

uztaisiiju .php saitu ar shito tavu scriput un man izmeta

 

Method not allowed on this resource

This is a sample customized error message.

The following tags are supported:

 

%c inserts the error code (i.e. 405)

%r inserts the error reason (i.e. Method not allowed on this resource)

%r inserts the server version (i.e. OmniSecure/3.0a4)

%e inserts the administration email address (i.e. <[email protected]>)

%% inserts a percent sign (i.e. %)

If you are a Javascript master, it should be pretty easy to use conditionals to make customized screens for different error codes. Note that SSI directives are not processed in the error template. You can find this file, ERROR.TEMP, in your executable directory (default is C:\HTTPD)

Link to comment
Share on other sites

×
×
  • Create New...