English 中文(简体)
POST 数据发送和将 URL 修改为相同
原标题:POST data send and change URL to the same

我有一个 URL 缩短服务, 我在 PHP 中做了这个 。 它会通过 POST 方法通过主页上的表格通过 POST 方法得到 URL 缩短 。 我想为此服务创建一个书签 。

它应该和点击它一样(它停留在书签栏上),它把当前的 url 和 POST 发送到 http:// siteplace /capement.php 上,并将位置更改为相同的(因为用户可以看到由此产生的短的 url) < strong > OR 显示短的 URL, 以提示形式显示可编辑的文本框(以便用户可以复制)。

如何做到这一点?

< 加强 > 我不想编辑我的 PHP 脚本。 但如果它真的重要 , 我可以编辑它

我尝试过的东西是:我刚刚从网上得到了一张执行XHR请求的JavaScript(来自网络),但是没有成功。我尝试了超过5个脚本,但所有脚本都失败了。

问题回答

使用 JS 将隐藏的窗体嵌入当前页面中, 该动作是您的服务, 输入是窗口。 位置, 然后提交窗体 。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签