/    Sign up×
Community /Pin to ProfileBookmark

Help Me In HTML + PHP

can some one make a code that has 3 inputs in html
1 input is MONTH using dropdown menu.
2 input is DAY using textbox that will only allow 2 characters and it range’s from 1-31.
3 Year that can enter 4 characters only numbers will accept.

and in PHP
it will display its chinese zodiac and zodiac sign thx :p

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@NogDogAug 05.2009 — I am sure that somebody here [i]could[/i] do it, the question is, why should they? The purpose of this forum is to [i]help[/i] PHP programmers, not just do all the work for someone for free. If you are not a PHP programmer and need one, you could post a job at [url=https://freelancer.internet.com/members/NogDog]freelancer.internet.com[/url] or other freelancer sites and see what sort of quotes you get. If you are a PHP programmer (or maybe a student doing an assignment?), then let us know what you have tried, how you are thinking of approaching this, etc.; and maybe we can help you work through the specific parts of the problem you do not know how to deal with.
Copy linkTweet thisAlerts:
@PierceMooreAug 06.2009 — Tell 'em, NogDog.

@OP: We are all as helpful as they get, but will not simply do work for free. Like NogDog said, this is a forum for PHP [B]assistance[/B]. Not free PHP work. Either post your job and pay someone to do the work or do the work yourself.

Here is a link to a quick Google search that the rest of us would do:

Google

Got your back, ND. (not that you need it :-P )


Pierce
Copy linkTweet thisAlerts:
@mb00140804authorAug 06.2009 — OopS sorry its my project but im inline with my programming in php

i've only done this thing

can you help me plss?

i cant do it in php i dont know the formula for getting the horoscope and chinese zodiac

<html>

<head>

<title>Birthdate</title>

</head>

<body>

<SCRIPT language=Javascript>

<!--

function isNumberKey(evt)

{

var charCode = (evt.which) ? evt.which : event.keyCode

if (charCode > 31 && (charCode < 48 || charCode > 57))

return false;

return true;
}
//-->

</SCRIPT>

<form name= "Month" action="Horoscope.php" method = "post">

<center>Select Your Birthdate:<br><br>

Month:

<select name= "M" size="1">

<option value="1">Jan</option>

<option value="2">Feb</option>

<option value="3">Mar</option>

<option value="4">Apr</option>

<option value="5">May</option>

<option value="6">Jun</option>

<option value="7">Jul</option>

<option value="8">Aug</option>

<option value="9">Sept</option>

<option value="10">Oct</option>

<option value="11">Nov</option>

<option value="12">Dec</option>

</select>

Day:<input maxlength="2" onkeypress="return isNumberKey(event)" width="30" >

Year:<input maxlength="4" onkeypress="return isNumberKey(event)" width="30"><br>

<br>

<input type = "submit">

</center>

</form>

</body>

</html>

this is for the input of the birthdate
Copy linkTweet thisAlerts:
@grifter7Aug 06.2009 — actually made this as a bit of a practice you can have it or lump it
[code=php]

<?php
$day=$_POST['day'];
$month=$_POST['month'];
$year=$_POST['year'];
if (preg_match('#[0-9]#', $day)==1&&$day<33) {
echo 'The day field is fine<br>';}
else{
echo "The day field is wrong.<br>";}

if(preg_match('#[0-9]#', $year)==1 && $year>1000 && $year<2010){
echo 'thanks for the year';}
else{
echo 'please return a year that is possible';}
?>
[/code]

[CODE]<form action="process.php" method="post">
Day:<input type="text" name="day">
Month:<select name="Month">
<option>January</option>
<option>Febuary</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>September</option>
</select>
Year:<input type="text" name="year">
<input type="submit" value="submit">
</form>[/CODE]
Copy linkTweet thisAlerts:
@mb00140804authorAug 06.2009 — @GRIFTER

thankz bro but is it for the range of the day and year?
×

Success!

Help @mb00140804 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...