Jump to content
zeroabsolut

Ajutor 2 probleme php si java script

Recommended Posts

1.Scrieti un program php care sa preia si sa afiseze datele introduse de utilizator dintr-un obiect de selectie multipla in html
2.Scrieti un program java script care prin intermediul unei casete text permite introducerea unei expresii de evaluare iar la apasarea unui buton calcueaza si afiseaza intr-o caseta text rezultatul

  • Downvote 1
Link to comment
Share on other sites

<?php

	if ($_GET['select']) {
		$values = $_GET['select'];
		
		print_r($values);
	}

?>

<!DOCTYPE html>
<html>
<head>
	<title>Test</title>
</head>
<body>

<form method="get">
	<select name="select[]" multiple="yes">
		<option value="111">111</option>
		<option value="2">2</option>
		<option value="3">3</option>
	</select>
	<button type="submit">Submit</button>
</form>

</body>
</html>

 

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...