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
--
[Back to original message]
|