Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用c#webservice传递html/php表单的信息_C#_Php_Html_Twitter Bootstrap_Web Services - Fatal编程技术网

使用c#webservice传递html/php表单的信息

使用c#webservice传递html/php表单的信息,c#,php,html,twitter-bootstrap,web-services,C#,Php,Html,Twitter Bootstrap,Web Services,我的HTML/Bootstrap表单如下: <form role="form" action="" method="post" class="login-form"> <div class="form-group"> <label class="sr-only" for="form-username">Email</label> <input type="text" name="form-usernam

我的HTML/Bootstrap表单如下:

<form role="form" action="" method="post" class="login-form">
    <div class="form-group">
        <label class="sr-only" for="form-username">Email</label>
        <input type="text" name="form-username" placeholder="Email....."
               class="form-username form-control" id="form-email">
    </div>
    <div class="form-group">
        <label class="sr-only" for="form-text">Type Order</label>
        <input type="text" name="form-text" placeholder="Tipo Encomenda"
               class="form-text form-control" id="form-text">
    </div>
    <div class="form-group">
        <label class="sr-only" for="form-number">Number</label>
        <input type="number" min="0" max="150" name="form-number"
               placeholder="Numero Peças" class="form-number form-control"
               id="form-number">
    </div>
    <div class="form-group">
        <label class="sr-only" for="form-radio">Urgen</label>
        <label class="radio-inline"><input type="radio" name="optradio">Urgente</label>
        <label class="radio-inline"><input type="radio" name="optradio">Não
            Urgente</label>
    </div>
    <button type="submit" class="btn btn-primary">Enviar</button>
</form>

电子邮件
类型顺序
数
乌尔根
厄根特
Não
厄根特
羡慕
我想通过c#webservice将结果发送给使用此方法的程序。我不知道是否可以直接或使用txt在获得信息后使用。

这种方式

<form role="form" action="demo_form.asp" method="post" class="login-form">
  <div class="form-group">
    <label class="sr-only" for="form-username">Email</label>
    <input type="text" name="form-username" placeholder="Email....."
           class="form-username form-control" id="form-email">
  </div>
   .........

电子邮件
.........


或者任何您想要通过http post方法发送数据的web目标

对于web服务GetDetailsService.asmx/GetCustdet

  <form role="form" action="mGetDetailsService.asmx/GetCustdet" method="post" class="login-form">


您可以在这里看到一个示例(适用于ajax,但概念类似)

您可以在表单action中指定目标我已经发布了答案,但在这种情况下,网站如何知道Web服务在哪里?通常在路径名或操作中,例如:或在post参数中设置要执行的Web服务操作。。例如:在某些情况下,您可以看到类似demo_form.asp/create或mytest.php/indexBut的路径,例如,我需要发布Web服务或将tje webservice放在InetPub中本地谢谢,从Web服务的侧面,我如何从html表单收集数据?
  <form role="form" action="mGetDetailsService.asmx/GetCustdet" method="post" class="login-form">