O'Reilly Forums: How To Use _Get - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Use _Get

#1 User is offline   Kieu 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 22-September 11

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']);
0

#2 User is offline   Kieu 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 22-September 11

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users