I can use only html and php. i have a page with 2 frames. 1 left and 1 main. On the left i have a dropdown list and a submit button.I want when i press submit button to display the url of the option of dropdown list in the main.php.
The page that creates 2 frames.
<!DOCTYPE html>
<html>
<frameset cols="25%,*" >
<frame src="left5.php" name="leftFrame" id="leftFrame" title="leftFrame" />
<frame src="main5.php" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
</frameset>
<body>
</body>
</html>
LEFT frame
<!DOCTYPE html>
<html>
<body>
<form name="links" action="main5.php" method="post">
<select name="NAME" id="ex_name">
<option value="../url1.html">URL1</option>
<option value="../url2.php">URL2</option>
<option value="../url3.php">URL3</option>
</select><input type="submit" value="GO!" name="submit"/>
</form>
</body>
</html>
Main frame
<!DOCTYPE html>
<html>
<body>
<?php
$ep = $_POST['links'];
echo "$ep"
?>
</body>
</html>
I cant use javascript.I know my fault is in $_POST
For your PHP, you're going to have to use something like switch and $_get functions to call the page.
Below is how I would do it.
It does not include how to work it out with frames, but it will show you how to call a local page in PHP.
index.php
things.php