You are here: Re: variables « PHP Programming Language « IT news, forums, messages
Re: variables

Posted by Alvaro G Vicario on 06/17/05 13:57

*** Sentinel wrote/escribió (Fri, 17 Jun 2005 09:55:59 +0000 (UTC)):
> i would like to send a variable to the next paage i am about to load bu
> not using post
>
> eg. index2.php?a=0&b=1&c=2
>
>
> how do i send them and how can i read them?

I suggest that you get a basic PHP tutorial rather than trying to figure
out how things work, it'll be less frustrating.

About your question, you can generate HTML just typing it outside the PHP
tags:

<?php

// This is PHP

?> This is HTML

Or you can use echo or print statements:

<?php

echo 'This is HTML dynamically generated from PHP';

?>

You read URL parameters from the $_GET associative array:

echo 'Param a=' . $_GET['a'];

--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация