Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-30-2005, 12:05 PM
Webviper2006 is offline Webviper2006
Registered User

Join Date: Nov 2005
Posts: 495

CSS and PHP Form Help!

Hi I have tow questions.

CSS Question: I need a CSS code that when the mouse hovers over my text menu, it makes it Bold.

PHP Form Question: For the name of form like this.

Code:
 <form>
<input name="send" type="submit" id="send" value="Send!" >
Do I put the input name like this? - $name ? And it's PHP.

And anotheter thing... When people send the form it goes to the same page and says Thanks for the challenge!
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++!
Reply With Quote
  #2  
Old 12-30-2005, 12:15 PM
JonM is offline JonM
Registered User

Join Date: Jun 2004
Posts: 2,156

no you don't name the form $name.

Here's a quick example

PHP Code:
<form>
<input name="send" type="submit" id="send" value="Send!" > 

<?php
//the name of the form is send so...
$send $_POST['send'];
$_POST['send'] is whatever you had in your form. That is assuming you are using the POST method.
Reply With Quote
  #3  
Old 12-30-2005, 04:36 PM
Capers is offline Capers
Registered User

Join Date: Oct 2003
Posts: 158

To tackle the menu item task, you could make two CSS classes for the different states you would like the item to appear:
Code:
<style type="text/css">
.menu{ 
	font-size: 10px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #000000;
}
.menuhl { 
	font-size: 10px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #000000;
}

</style>
So "menu" is plain black text in verdana and "menuhl" is the same but bold.

And then for the menu text you would use the onmouserover and onmouseout attributes to change the css style applied to the link depending on whether the mouse is hovering over the text, like so:

Code:
<a href="page.htm" onMouseOver="this.className = 'menuhl'" onMouseOut="this.className = 'menu'" class="menu">Menu Item</a>
Which will work as shown here
__________________
Reply With Quote
  #4  
Old 12-30-2005, 04:49 PM
Webviper2006 is offline Webviper2006
Registered User

Join Date: Nov 2005
Posts: 495

Thanks alot guys!
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
incorporate php file upload with MySQL form? pauldridge Tech Support 1 06-16-2010 08:46 AM
PHP :| Form Checking Problems JonM Web design and Programming 4 01-27-2006 12:08 PM
Help with the form please! alwaysme phphq.Net Forums 1 12-10-2005 10:55 AM
Mail form w/out PHP KoBrA Web design and Programming 6 06-01-2005 11:51 AM
form help SilentRanger Web design and Programming 6 09-12-2004 02:13 PM


All times are GMT -5. The time now is 08:02 PM.




Powered by vBulletin®