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.

Link to comment
Share on other sites

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

?>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.