HTML forms - input type submit problem with action=URL when URL contains index.aspx

前端 未结 4 509
無奈伤痛
無奈伤痛 2020-12-31 01:25

I have a HTML form that truncates the action parameter after the \"?\" mark - which is NOT the desired behavior I am looking for.

Here is a representative HTML snipp

4条回答
  •  再見小時候
    2020-12-31 02:14

    This appears to be my "preferred" solution:

    Sorry for the presentation format - I'm still trying to learn how to use this forum....

    I do have a follow-up question. In looking at my MySQL database of URL's it appears that ~30% of the URL's will need to use this post/div wrapper approach. This leaves ~70% that cannot accept the "post" attribute. For example:

    
      

    does not work. Do you have a recommendation for how to best handle this get/post condition test. Off the top of my head I'm guessing that using PHP to evaluate the existence of the "?" character in the URL may be my best approach, although I'm not sure how to structure the HTML form to accomplish this.

    Thank YOU!

提交回复
热议问题