点击按钮打开PHP页面
我想知道是否有人能帮助我 我将下面的表单放在一个PHP文件中点击按钮打开PHP页面,php,javascript,Php,Javascript,我想知道是否有人能帮助我 我将下面的表单放在一个PHP文件中 <form name="savemyfindstolocation" id="savemyfindstolocation" method="post"> <p><label></label> </p> <p align="left"> <input
<form name="savemyfindstolocation" id="savemyfindstolocation" method="post">
<p><label></label>
</p>
<p align="left">
<input name="userid" type="text" id="userid"/>
<input name="locationid" type="text" id="locationid"/>
<br />
</p>
<div>
<label>
<div align="left">Click on the map to place the marker for the find that has been made and drag until the precise location has been found. </div>
</div>
<p align="left"><label>Find OSGB36 Latitude Co-ordinate<br />
</label>
</p>
<div>
<div align="left">
<input name="findosgb36lat" type="text" id="findosgb36lat" size="20" />
</div>
</div>
<p align="left"><label>Find OSGB36 Longitude Co-ordinate<br />
</label>
</p>
<div>
<div align="left">
<input name="findosgb36lon" type="text" id="findosgb36lon" size="20" />
</div>
</div>
<p align="left"><label>Date of Trip<br />
</label>
</p>
<div>
<div align="left">
<input name="dateoftrip" type="text" id="dateoftrip" size="10" />
</div>
</div>
<input name="submit" type="submit" onclick="MM_callJS('savedata()')" value="Submit" />
</form>
单击地图以放置已找到的标记,然后拖动,直到找到精确位置。
找到OSGB36纬度坐标
查找OSGB36经度坐标
行程日期
这一切都很好,但我现在想添加一个按钮,打开下面的php页面“blobupload.php”。如果我从我所做的研究中正确理解了这一点,我需要使用javascript打开页面,使用主表单中的“提交”操作
我不明白的是,当“提交”操作已经用于在主窗体上保存信息时,如何执行此操作
是否有人可以告诉我如何解决这个问题,即使用相同的“提交”操作,但有两个不同的目的。只需修改表单标记(将操作
属性添加到要加载的文件中):
然后提交输入标签:
<input name="submit" type="submit" value="Submit" />
您可以使用第二个javascript函数以这种方式打开新窗口
<input name="submit" type="submit" onclick="MM_callJS('savedata()');SECOND_JS_FUNCTION()" value="Submit" />
使用php处理表单是一种方法
<input name="submit" !!!!!!action="process.php" method="POST (or get)!!!!!!!!!! type="submit" onclick="MM_callJS('savedata()')" value="Submit" />
您发布的表单代码没有操作属性。你是如何处理这份表格的?如果您使用PHP来处理表单输入,那么只需在数据处理结束时重定向到blobupload.PHP页面即可。事实上,不管表单是如何处理的,你都可以直接重定向,但是在处理之后你会重定向。嗨,非常感谢你花时间帮我解决这个问题。很好用!亲切的问候。嗨,非常感谢你看了我的文章并回复了我的帖子,我想这可能会帮助我整理一些其他的页面。你好,非常感谢你的建议。我想我可以用这个来解决我一直试图解决的另一个问题。亲切的问候。
<input name="submit" !!!!!!action="process.php" method="POST (or get)!!!!!!!!!! type="submit" onclick="MM_callJS('savedata()')" value="Submit" />
header("Location:URL");