pcw Posted March 26, 2009 Share Posted March 26, 2009 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 More sharing options...
micah1701 Posted March 26, 2009 Share Posted March 26, 2009 you mean like this? <form action="<?php echo $_SERVER["PHP_SELF"]."?start=1&fn=".urlencode($filename)."&foffset=0&totalqueries=0"; ?>" /> Link to comment https://forums.phpfreaks.com/topic/151235-form-action-error/#findComment-794435 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.