another hyperlink problem again.
main.php
Code: Select all
<select name="select" id="SendTo" onChange="browse(this.form,0)">
<option selected value=0> choose a place</option>
<option value="EditService.php">Inhouse</option>
<option value="return.php">Supplier</option>
Code: Select all
<script language="JavaScript1.2">
function browse(form, i) {
var site = form.elements[i].selectedIndex ;
if ( site > 0) {
top.location = form.elements[i].options[site].value }}
</script>
the main.php will post to redirect.php
redirect.php
Code: Select all
<?php header ("Location: $select/" ) ; ?>
The problem occur when i update data in EditService.php then go back main.php. And then i select "Inhouse" to go to EditService.php again. The data in EditService.php was not updated. After press refresh button, the data just updated.
any method can solve this kind of problem ?
It look like redirect to the page but not reload the page.
apologize to my broken english