Jump to content

form action error


pcw

Recommended Posts

Hi, I am modifying a script that backs up my mysql database. One of the changes I am making is to be able to select the database to restore, from a select menu.

 

To restore a database at the moment, a link is used:

 

<?php
if (!$error && !isset ($_REQUEST["fn"]) && $filename!="")
{ echo ("<p><a href=\"".$_SERVER["PHP_SELF"]."?start=1&fn=".urlencode($filename)."&foffset=0&totalqueries=0\">Start Import</a> from $filename into $db at $dbhost</p>\n");
}
?>

 

My script which allows a database to be selected from a menu, should carry out this task, instead of a link being clicked on.

 

I think I need to put the link URL as the form action but cant work out how to do it. Any help is much appreciated.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/151235-form-action-error/
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.