Click here to Skip to main content
15,909,747 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Automation server can't create object Pin
Ali Al Omairi(Abu AlHassan)7-Apr-11 5:20
professionalAli Al Omairi(Abu AlHassan)7-Apr-11 5:20 
Questionformular-Database save Pin
Pierre besquent7-Feb-11 3:50
Pierre besquent7-Feb-11 3:50 
AnswerRe: formular-Database save Pin
Sunasara Imdadhusen16-Feb-11 23:06
professionalSunasara Imdadhusen16-Feb-11 23:06 
QuestionValidating the input type "file" data. - Is this the right forum? please Pin
Douglas Kirk4-Feb-11 11:23
Douglas Kirk4-Feb-11 11:23 
AnswerRe: Validating the input type "file" data. - Is this the right forum? please Pin
Manfred Rudolf Bihy6-Feb-11 8:06
professionalManfred Rudolf Bihy6-Feb-11 8:06 
GeneralRe: Validating the input type "file" data. - Is this the right forum? please Pin
Douglas Kirk6-Feb-11 8:34
Douglas Kirk6-Feb-11 8:34 
GeneralRe: Validating the input type "file" data. - Is this the right forum? please Pin
Manfred Rudolf Bihy6-Feb-11 9:00
professionalManfred Rudolf Bihy6-Feb-11 9:00 
GeneralRe: Validating the input type "file" data. - Is this the right forum? please Pin
Douglas Kirk6-Feb-11 9:23
Douglas Kirk6-Feb-11 9:23 
Hello yes, but it leads to a new one

<html>
<body>
<?php $sFileName="";?>

<form enctype="multipart/form-data" name="Software" action="SoftwareUpdate.php" method="post" onSubmit="return Validate(this);">
        <input type="hidden" name="sFileName" value="<?php echo $sFileName;?>" />
	<input type="file" name="sFileName" value=""/>
	<input type="text" name="sSoftwareType"/>
	<input type="text" name="sSoftwareName"/> 
<br/> 

<input type="submit" name="Hello" value="Go!">
</form>

<script type="text/javascript">



function Validate(f)
{	
	if (f.sSoftwareType.value == "")	
	{		
		f.sSoftwareType.focus();		
		return false;	
	}	
	if (f.sSoftwareName.value == "")	
	{		
		f.sSoftwareName.focus();		
		return false;	
	}	
	if (f.sFileName.value == "")	
	{		
		f.sFileName.focus();		
		return false;		
	}
}
</script>
</body>
</html>


by having the

<input type="hidden" name="sFileName" value="<?php echo $sFileName;?>" />


If I remove this code then the _POST doesn't happen in the SoftwareUpdate.php file.

I will have to do create a smaller SoftwareUpdate file and see if I can figure it out.

Do you know why the person would have done this double input on the sFileName?
GeneralRe: Validating the input type "file" data. - Is this the right forum? please Pin
Manfred Rudolf Bihy6-Feb-11 21:33
professionalManfred Rudolf Bihy6-Feb-11 21:33 
QuestionThoughts on a Javascript playground? Pin
Jerry Evans4-Feb-11 6:10
Jerry Evans4-Feb-11 6:10 
AnswerRe: Thoughts on a Javascript playground? Pin
DaveAuld4-Feb-11 8:03
professionalDaveAuld4-Feb-11 8:03 
GeneralRe: Thoughts on a Javascript playground? Pin
Manfred Rudolf Bihy6-Feb-11 7:40
professionalManfred Rudolf Bihy6-Feb-11 7:40 
AnswerRe: Thoughts on a Javascript playground? Pin
cjoki4-Feb-11 9:59
cjoki4-Feb-11 9:59 
AnswerRe: Thoughts on a Javascript playground? Pin
Monjurul Habib1-Mar-11 8:23
professionalMonjurul Habib1-Mar-11 8:23 
QuestionNavigation from a PHP form Pin
MacRaider44-Feb-11 3:33
MacRaider44-Feb-11 3:33 
AnswerRe: Navigation from a PHP form Pin
cjoki4-Feb-11 10:04
cjoki4-Feb-11 10:04 
GeneralRe: Navigation from a PHP form Pin
MacRaider44-Feb-11 11:43
MacRaider44-Feb-11 11:43 
GeneralRe: Navigation from a PHP form Pin
cjoki4-Feb-11 18:26
cjoki4-Feb-11 18:26 
GeneralRe: Navigation from a PHP form Pin
MacRaider48-Feb-11 6:58
MacRaider48-Feb-11 6:58 
GeneralRe: Navigation from a PHP form Pin
MacRaider48-Feb-11 7:25
MacRaider48-Feb-11 7:25 
GeneralRe: Navigation from a PHP form Pin
cjoki8-Feb-11 13:26
cjoki8-Feb-11 13:26 
QuestionSlow Animation Pin
Ali Al Omairi(Abu AlHassan)2-Feb-11 20:10
professionalAli Al Omairi(Abu AlHassan)2-Feb-11 20:10 
AnswerRe: Slow Animation Pin
cjoki4-Feb-11 10:06
cjoki4-Feb-11 10:06 
GeneralRe: Slow Animation Pin
Ali Al Omairi(Abu AlHassan)5-Feb-11 8:16
professionalAli Al Omairi(Abu AlHassan)5-Feb-11 8:16 
GeneralRe: Slow Animation Pin
cjoki5-Feb-11 10:31
cjoki5-Feb-11 10:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.