Jump to content


Photo

How To Use _Get


  • Please log in to reply
1 reply to this topic

#1 Kieu

Kieu

    New Member

  • Members
  • Pip
  • 2 posts

Posted 22 September 2011 - 10:00 PM

I 'm reading the code of robin nest and found few lines of codes i don't understand:

$_GET ['view']

$_GET ['add']

$_GET ['remove']

can't find the html codes for these variables, view, add, remove

for $_POST, we need to write these few lines of html codes

<form method='post' action=' ...
...<input type='text' ... value='$user' ...

then we can write php code to get the variable user,

$user = sanitizeString($_POST['user']);

#2 Kieu

Kieu

    New Member

  • Members
  • Pip
  • 2 posts

Posted 24 September 2011 - 10:07 AM

never mind, got it after run the following codes:

<?php // testing.php
echo "<a href='testing.php?val='>value</a>";
if (isset ($_GET['val'])) echo "hello world";
?>




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users