Jump to content

GET Parametr


p-co

Recommended Posts

Hellow, I Have A Problem With This Script, What IS This Problem !?

 

<?php
$id = $_GET['service'];
?>

<body onload="Check2();">

<input id="id" type="text" name="id" size="20" value="<?php echo $id; ?>">

<script language="javascript" type="text/javascript">
function Check2() {
if ( document.getElementById('id').value == '11' )
{
document.getElementById('package').value = '11';
}
if ( document.getElementById('id').value == '12' )
{
document.getElementById('package').value = '12';
}
</script>

<select name="package" class="add_user_input_select" id="package" size="1" dir="ltr">

				<option>	انتخاب کنید</option>
				<option value="11">XLHost - Plan1</option>
				<option value="12">XLHost - Plan2</option>

</select>

 

Test Link On Linux : http://173.45.75.13/client/Register.Ded.php?service=11

 

Any Idea!?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/175336-get-parametr/
Share on other sites

Maybe you could start by telling about what it is suppose to do and what errors you are getting.

these are the errors I'm getting btw

missing } after function body                          Register...ervice=11 (line 106)

}\n   

Check2 is not defined            Register...ervice=11 (line 1)

Link to comment
https://forums.phpfreaks.com/topic/175336-get-parametr/#findComment-924036
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.