Maryam.m's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 9 (0.03 per day)
- Joined:
- 04-June 12
- Profile Views:
- 660
- Last Active:
Jun 28 2012 08:30 AM- Currently:
- Offline
Previous Fields
- Country:
- IR
- OS Preference:
- Windows
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- Who Cares
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: help:question obout checkbox!
Posted 23 Jun 2012
HEY!
finally i could find it.
yessssssssss!!!
THAT'S IT!!!!
<html>
<head>
<title>
my page
</title>
<script language="javascript" type="text/javascript">
var txt ="";
function createOrder()
{
var myCheckBox=document.forms[0].myCheckBox;
var i;
for (i=0;i<myCheckBox.length;i++)
{
if (myCheckBox[i].checked)
{
txt = txt + myCheckBox[i].value + "<br />";
}
}
}
function showMessage() {
document.write(txt);
document.write('<br /><br /><a href=checkbox.html>Back to HomePage</a>');
}
</script>
</head>
<body>
<p><b>Select one or more ...</b></p>
<form method="get" >
<input type="checkbox" name="myCheckBox" value="First name : <b><font color=red>Maryam</font></b></br>Last name : <b><font color=red>Mohammadi</font></b></br>Sex : <b><font color=red>Female</font></b><br />"> Personal Information<br />
<input type="checkbox" name="myCheckBox" value="BirthDay : <b>1992</b><br />"> BirthDay<br />
<input type="checkbox" name="myCheckBox" value="Email : <a href=mailto:mm_137042@yahoo.com>mm_137042@yahoo.com</a><br />"> Email address<br />
<input type="checkbox" name="myCheckBox" value="It is an image : <img src=image.png />"> a picture<br />
<br />
<input type="button" onclick="createOrder(),showMessage()" value="Send order">
</form>
</body>
</html> -
In Topic: help:question obout checkbox!
Posted 21 Jun 2012
oh yes thanks a million for your big help
-
In Topic: help:question obout checkbox!
Posted 21 Jun 2012
thanks but one more question(please excuse me
)
you wrote for example value="First" but my content of checkbox is not only one word it's a lot of information ,i mean when i choose First,all my education infomation should be print...it is my problem! -
In Topic: help:question obout checkbox!
Posted 21 Jun 2012
yes I know what you say...
but our professor toldو you should write it only with html and javascript code.
Quote
If you want to do this using Javascript, you'd be better of not sending the form at all. Just use Javascript on the original page to update that page according to what is chosen. There is no need to use two separate pages if you choose to use Javascript.
could you tell me how? -
In Topic: help:question obout checkbox!
Posted 21 Jun 2012
pleas see this code
<HTML> <head> <TITLE>my resume</TITLE> </head> <body> <FORM method="POST" ACTION="information.html"> <center> Select from here: <br><br> <table> <tr> <td> <input TYPE=checkbox name=information VALUE=contact > </td> <td> contact info </td> </tr> <tr> <td> <input TYPE=checkbox name=information VALUE=personal> </td> <td> personal info </td> </tr> <tr> <td> <input TYPE=checkbox name=information VALUE=edu > </td> <td> education info </td> </tr> <tr> <td> <input TYPE=checkbox name=information VALUE=favorites> </td> <td> favorites </td> </tr> </table> <br> <INPUT TYPE=submit name=submit Value="Submit"> </center> </FORM> </BODY> </HTML>
so for example you choose favorites and education info adn click on submit then open a page ,on that page how can show all the informations of my favorits and education...this problem made me crazy....
and of course on the next page( information.html )i should write java script.
My Information
- Member Title:
- New D.I.C Head
- Age:
- 21 years old
- Birthday:
- June 23, 1991
- Gender:
-
- Location:
- Iran-Isfahan
- Interests:
- Network
- Full Name:
- Maryam
- Years Programming:
- 2
- Programming Languages:
- C++ Java
Contact Information
- E-mail:
- Click here to e-mail me
- Yahoo:
-
mm_137042@yahoo.com
Friends
Maryam.m hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
Maryam.m
05 Jun 2012 - 10:00