Jump to content

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


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.

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.