更新fork Github(Update the fork Github)
我已经分叉了一个远程回购,它有3个分支
- 主
- 一个
- b
但是该团队向遥控器添加了新的分支。 目前的分支机构是
- 主
- 一个
- b
- C
- d
- Ë
但我的叉子只有3个分支。 我应该如何更新我的fork以包含远程仓库中存在的所有分支(包括新增加的分支)。
I have forked a remote repo and it has 3 branches
- master
- a
- b
But the team added new branches to the remote. And the current branches are
- master
- a
- b
- c
- d
- e
but my fork has only 3 branches. How should I update my fork to contain all the branches (including newly added branches) present in remote repo.
原文:https://stackoverflow.com/questions/15738604
更新时间:2023-12-04 15:12
最满意答案
尝试这个
<?php session_start(); function putForm2(){ $myForm = "<form name='form2' method='post' action='#'><table border='1'><tr><td>form 2 is here!<br></td></tr><tr><td><input type='text' name='txt123' id='txt123'></td></tr> <tr><td><input type='submit' name='sendtwo' id='sendtwo' value='TwoClick'></td></tr></table></form>"; return $myForm; } ?><!DOCTYPE html> <html> <head><title></title> </head> <body> <div id="One"> <form name="form1" method="post" action="#"> <?php echo "<input type='text' name='txt1' id='txt1'>"; // This text box is dynamically populated ?> <input type="submit" name="sendone" id="sendone" value="OneClick"> </form> </div> <div id="two"> <?php if(isset($_POST['sendone'])) { if($_POST['txt1'] == '') {echo 'txt1 is empty!'; return;} else {$_SESSION['txt1'] = $_POST['txt1'];} if(isset($_SESSION['txt1'])) echo $_SESSION['txt1']; echo putForm2(); } if(isset($_POST['sendtwo'])) if(isset($_POST['sendtwo'])) { if($_POST['txt123'] == '') { echo putForm2(); echo "Text box is empty..."; return; } } ?> </div> </body> </html>
try this
<?php session_start(); function putForm2(){ $myForm = "<form name='form2' method='post' action='#'><table border='1'><tr><td>form 2 is here!<br></td></tr><tr><td><input type='text' name='txt123' id='txt123'></td></tr> <tr><td><input type='submit' name='sendtwo' id='sendtwo' value='TwoClick'></td></tr></table></form>"; return $myForm; } ?><!DOCTYPE html> <html> <head><title></title> </head> <body> <div id="One"> <form name="form1" method="post" action="#"> <?php echo "<input type='text' name='txt1' id='txt1'>"; // This text box is dynamically populated ?> <input type="submit" name="sendone" id="sendone" value="OneClick"> </form> </div> <div id="two"> <?php if(isset($_POST['sendone'])) { if($_POST['txt1'] == '') {echo 'txt1 is empty!'; return;} else {$_SESSION['txt1'] = $_POST['txt1'];} if(isset($_SESSION['txt1'])) echo $_SESSION['txt1']; echo putForm2(); } if(isset($_POST['sendtwo'])) if(isset($_POST['sendtwo'])) { if($_POST['txt123'] == '') { echo putForm2(); echo "Text box is empty..."; return; } } ?> </div> </body> </html>
相关问答
更多-
确定已解决的代码,以便每个人都能看到: if(isset($_POST['submit'])){ //tables will shown only after submitted } 并且提交表单输入必须如下声明: Ok so the resolved code so everyone can see: if(isset($_POST['submit'])){ //tables wi ...
-
提交表单后,如何在后台运行PHP脚本?(How can I run a PHP script in the background after a form is submitted?)[2019-11-21]
对exec和shell_exec一些实验我发现了一个完美的解决方案! 我选择使用shell_exec所以我可以记录发生的每个通知过程(或不)。 ( shell_exec返回一个字符串,这比使用exec更容易,将输出分配给一个变量,然后打开一个写入的文件。) 我使用以下行来调用电子邮件脚本: shell_exec("/path/to/php /path/to/send_notifications.php '".$post_id."' 'alert' >> /path/to/alert_log/paging.l ... -
这里使用了错误的引用 $output .=''; Wrong quote used here $output .='
-
您已经将表单集的方法设置为post ,但您尝试使用$_GET['appid']访问appid。 您需要更改表单方法以get ,或使用$_POST['appid']访问appid You've got the method for the form set to post, but you're trying to access the appid using $_GET['appid']. You either need to change the form method to get, or access ...
-
尝试这个