Jump to content

[SOLVED] php buit in sessions


redarrow

Recommended Posts

jesirose the number i was talking about is a number that i have comming from the members email account, That number of the url updates the database to tell the database that the user is now a active user ok.

 

i dont smoke and i am a blind php programmer  so my spelling is crap sorry ok.

i did use $_GET to get the condition of the url example member=active in a url then the above code to get the last six digits.

 

 

example only what i was doing

<?php

//members url from there email account with 6 numbers on the end.

$url="www.google.co.uk?member=activate&123456";

 

//get the numbers from the url with a $_GET condition.

 

if($_GET['member']="activate"){

$my_url=$REQUEST_URI;

$x=substr($my_url,-6);

 

//update the database

?>

 

Are you saying that i could of used two $_GET statements as the connditions.

 

example2 only

 

<?php

//members url from there email account with 6 numbers on the end.

$url="www.google.co.uk?member=activate&num=123456";

 

//get the numbers from the url with a $_GET condition.

 

if($_GET['member']="activate"){

 

$update=$_GET['num'];

 

//update the database

?>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.