Jump to content

[SOLVED] Passing two variables to another page using $GET ?


webmaster1

Recommended Posts

Hi All,

 

I'm passing a value from page 1 to page 2:

 

Page 1:

<?php echo "<a href='deldnew.php?geturn=$urn'>DELETE</a>"; ?>

 

Page 2:

<?php $geturn=$_GET['geturn']; ?>

 

I use the $geturn value to reference a record to be deleted from a mySQL table.

 

 

??? Here's where I'm stuck: I need to pass a second variable whose value is the url of an image to be deleted from the server.  ???

 

Page 2:

<?php $myFile = "$getpath"; unlink($myFile); ?>

 

Any ideas on how to pass two variables using the above method?

 

 

 

 

Nothing spectacular.

You will get an error when trying to validate your page. It's not an error that will make your page inoperable (at least not anytime soon), but you should always try to make your pages so that they validate.

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.