Click here to Skip to main content
15,887,302 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Ive created a form with date,month,year.My criteria is to get day of this given date Using php function should use return inside the function and use echo outside the function.I Dunno what function exactly i should use since i'm a beginner in programming. please give the code for this problem.It'll be more helpful to Move further and understand the function a lot more

What I have tried:

<html>
<head>
<title> My first Html For future </title>
</head>
<body>
 <form action="Tutorial.php" method="GET">
 <p> Date : <br> <br><input type="number_format" placeholder="Date" Name="Date" value=""> </p>
 <p> month: <br> <br><input type="number_format" placeholder="Month" Name ="month" value=""> </p>
 <p> Year : <br> <br><input type="Date" Name="year" value=""> </p>
 <p> <input type="submit" value="submit"> </p>
</form> 

<?php
function writeDate(){
}
?>
</body>
</html>
Posted
Updated 19-Feb-18 0:52am
v2
Comments
Mohibur Rashid 19-Feb-18 6:49am    
Have you studied?
ZurdoDev 19-Feb-18 9:35am    
I do not understand what you are asking us to do.
Subash_vegeta 19-Feb-18 23:54pm    
Ive created a form which will get a date,month and year from the user.After the User entered date,month and year it should Print the Day of that Given Dates.You have to use a php function.This is it.Still Don't get it?
ZurdoDev 20-Feb-18 7:27am    
You told us what you want to do. But you have not asked a specific question. That means you want us to write all of the code for you. No thank you.
Subash_vegeta 28-Feb-18 8:39am    
No Not the full code.I'm confused what function should i use and how to fetch data's from the form using function.Sorry if u can't understand me..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900