Jump to content

Parse form parameter like hyperlink


yandoo

Recommended Posts

Hi all  ;D

 

Is it possible to parse a parameter to another page like is done on a hyperlink but in a form??

 

Something like...

 

a href="page4.php?recordID=<?php echo $row_test['ID']; ?>">continue</a>

 

 

to something like....

 

  $updateGoTo = "page5.php?recordID=<?php echo $row_testl['ID']; ?>";
  if (isset($_SERVER['QUERY_STRING'])) {
    $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
    $updateGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $updateGoTo));

 

Is that sort of thing dooable??

 

Thank You :)

Link to comment
https://forums.phpfreaks.com/topic/91152-parse-form-parameter-like-hyperlink/
Share on other sites

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.