Jump to content

Action failure.


Carlton

Recommended Posts

I can "obviously see" it posting to "DeleteApp.php" what was you expecting ?

 

also

you probably meant why is the pname not being set!

 

try this (with extra quotes)

echo("
<form method = \"get\" action = \"DeleteApp.php?pname=\"" . $Applications['Name'] . "\">
<input value='Delete' type='submit' />
</form>
");

Link to comment
https://forums.phpfreaks.com/topic/211018-action-failure/#findComment-1100562
Share on other sites

  Quote

I can "obviously see" it posting to "DeleteApp.php" what was you expecting ?

 

also

you probably meant why is the pname not being set!

 

try this (with extra quotes)

echo("
<form method = \"get\" action = \"DeleteApp.php?pname=\"" . $Applications['Name'] . "\">
<input value='Delete' type='submit' />
</form>
");

 

No I didn't mean, that pname is a empty string (In the URL of course).

 

The page just goes to http://localhost/DeleteApp.php?

 

Nothing after .php?

Link to comment
https://forums.phpfreaks.com/topic/211018-action-failure/#findComment-1100565
Share on other sites

That isn't the way to send a GET var . . .

 

<?php
echo "<form method=\"get\" action=\"DeleteApp.php\">
<input type=\"hidden\" name=\"pname\" value=\"{$Applications['Name']}\" />
<input value='Delete' type='submit' />
</form>
";
?>

Link to comment
https://forums.phpfreaks.com/topic/211018-action-failure/#findComment-1100567
Share on other sites

YEP!

using get and not passing anything from the form will give a clear url!

 

if you used POST the you could pass both!

IE

echo("
<form method = \"POST\" action = \"DeleteApp.php?pname=\"" . $Applications['Name'] . "\">
<input value='Delete' type='submit' />
</form>
");

 

BUT Pikachu2000 is the better route IMHO

Link to comment
https://forums.phpfreaks.com/topic/211018-action-failure/#findComment-1100568
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.