Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: PHP edin prost primer


  • Subject: Re: lug-bg: PHP edin prost primer
  • From: boril@xxxxxxxx (Boril Yonchev)
  • Date: Wed, 6 Jun 2001 12:42:51 +0300



ia si napravi 2 novi php files naprimer info.php i info php3
v tiah pishi slednoto

<? phpinfo(); ?>

kachi gi tam i pusni edinia i drugia da ako imash php suport na sarvara
triabva da ti generirat edna stranica s informacia za versiata na sarvara
PHP  modula i masa drugi neshta ako ne ti bachka PHP supporta niama da
vidish nishto takova :")

BY

----- Original Message -----
From: "Iavor " <unitrans@xxxxxx>
To: <lug-bg@xxxxxxxxxxxxxxxxxx>
Sent: Wednesday, June 06, 2001 11:11 AM
Subject: lug-bg: PHP edin prost primer

> Zeh si edin PHP spravo4ni i imashe edin primer ama neshto ne trygva
> ako nqkoi moje da go pregleda i dami go prati popraven shesy mu mnogo
> blagodaren
> na http://free.top.bg/unitrans/ip.php3 sym go ka4il
> Primer: tva nqkakava Obrabotka na formi s danni
> pita za firs name i last name syshto i za interests
> <HTML><head><title>PHP example</title></HEAD>
> <body>
> <H1>Form Example</H1>
> <?
>
> function show_form($first="",$last="",
>  $interest="") {
> $options=array("Sports","Busniness","Travel","shopping","Computers");
> if(empty($interest)) $interest=array(-1);
> ?>
> <FORM ACTION="ip.php3" METHOD="POST">
>  First Name:
> <INPUT TYPE=text NAME=first
>  VALUE="<?echo $first?>">
> <BR>
> Last Name:
> <INPUT TYPE=text NAME=Last
>  VALUE="<?echo $last?>">
> <BR>
> Interest:
> <SELECT MULTIPLE NAME=interest[]>
> <?
> for($i=0, reset($interest);
> $i<count($options);$i++){
> echo"<OPTION";
> if(current($interest)==$options[$i]{
> echo "SELECTED";
> next($interest);
>  }
> echo">$options{$i}\n";
> }
> ?>
> </SELECT><BR>
> <INPUT TYPE=submit>
> </form>
> <? }
>
> if(!isset($first)) {
> show_form();
> }
> else {
> if(empty($first) || empty($last) ||
> count($interest)==0) {
> echo "You did not fill in all the";
> echo"fields,please try again.\n";
> show_form($first,$last,$interests);
> }
> else {
> echo "Thank you, $first $last, you ";
> echo "Selected ".join(" and ",$interest);
> echo "as your interest.\n";
> }
> }
> ?>
> </body></html>
> -----------------------------
> Free mail from www.dir.bg!
>
===========================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara
Zagora
>
>
>

===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.