[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: php variablen printer ikke



On Sat, 28 Aug 2010 14:42:26 +0000, Olof wrote:

> Ah.. Hade varit lättare att hitta felet om du hade indenterat, men du
> har initierat $text3 inne i ett block, så att den har ett scope som
> bara gäller inom det blocket (dvs if-satsen). När du försöker använda
> den utanför det blocket finns den inte längre.

Ehm, nej, sådan fungerer scope tydeligvis ikke i PHP.

Men $text3 bliver _kun_ sat hvis if-sætningen udføres, altså hvis man
henter siden med en POST.

Så hvis du klikker ind på http://www.mimoart.ooz.dk/fotofi4.php er
$text3 ikke sat. Hvis du derefter klikker på "Write it !" knappen bliver
if-sætningen udført, og $text3 bliver sat.


  Mvh.

   Adam

-- 
 "Angels can fly because they take themselves lightly."       Adam Sjøgren
                                                         sslug@sslug


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-09-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *