Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

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.