HTML - Form Cursor Action
This maybe a dumb question. I form that I use for my mailing list. I am having trouble getting the cursor to display as a text cursor over the input section and a hand cursor over the "sign up" button. Ref: http://bigdogcattle.com
Here is the html code: <div class="form_contents"> <label for="email">Join our Mailing List</label> <input type="text" name="email" /> <br/><br/> <input type="submit" value="Sign Up!"/> </div> Any ideas? Thanks, Jamie Similar TutorialsCan someone tell me how I would code for a webpage to open directly into a form where the cursor just sits there flashing awaiting input form the user. just like this google page does: http://maps.google.co.uk/maps I have the webpage and the form, but just need to know hot get the cursor to go straight to the form? Hi, Is there any way to have more than one action script in a form? Thanks in advance! Geetha hi i was wondering if anyone has any idea how i can add more then one form action to the same page? i have 2 in my page but they are conflicting with each other thanks... This is how i have it in my page: Code: <form name="form" method="post" action="login.php"> form action 1 my code here..... </form> <form name="form" method="post" action="index.php"> form action 2 my code here..... </form> I made a HTML Submittion, but everytime a user adds stuff, like their name, etc. it redirects to another page. Is it possible, to let the HTML Submisision, submit the details, without it going to a different page? Can i assign a URL like index.php?page=result using the get method in a php form. Ex: HTML Code: <form action="?page=results" method="get"> <input type="submit" value="Submit"> </form> Hi, Is there any way to have more than one action script in a form? Regards, Geetha ooh, its been a long time since i had to ask a question in here. i have a form that just wants to redirect to the home page, no matter what the action is. HTML Code: <form id="contactForm" method="post" action="index.phtml?file=contact.phtml" enctype="multipart/form-data"> <input class="input" name="contact_name" type="text" onfocus="if(this.value == 'Name:') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Name:' }" value="<?php echo (!empty($_POST['contact_name']) && $_POST['contact_name']) ? $_POST['contact_name'] : 'Name:'; ?>" /> <input class="input" name="contact_phone" type="text" onfocus="if(this.value == 'Phone:') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Phone:' }" value="<?php echo (!empty($_POST['contact_phone'])) ? $_POST['contact_phone']: 'Phone:'; ?>" /> <input class="input" name="contact_email" type="text" onfocus="if(this.value == 'E-Mail:') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'E-Mail:' }" value="<?php echo (!empty($_POST['contact_email'])) ? $_POST['contact_email']: 'E-Mail:'; ?>" /> <textarea name="contact_message" cols="1" rows="1" onfocus="if(this.value == 'Message:') { this.value = ''; }" onblur="if(this.value=='') this.value='Message:'" /><?php echo (!empty($_POST['contact_message'])) ? $_POST['contact_message'] : 'Message:'; ?></textarea> <a href="#" class="right link1" onclick="document.getElementById('contactForm').submit()">Send</a> <a href="#" class="right link1" onclick="document.getElementById('contactForm').reset()">Clear</a> <input name="ContactSubmit" type="hidden" /> </form> and its not submitting. i think i messed up the link submits, what url shoudl be in there, when i put in index.phtml?file=contact.phtml it stays on the page but doesnt process. also, is the enctype correct for this type of post? also my doc type is xhtml strict, but i am going to have to satisfy a couple errors as far as that is concerned as well, its complaining about Quote: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag when i change the action even to itself which is /contact.phtml it still redirects to the home page. i have to ask it, what obvious fundamental have i forgotton? EDIT, ok it must be in the link submits, when i delete the href tag out of it completely, it seems to be processing. i cant figure out why the # sign was in there, whats supposed to be there for a link submit? i trued a url and that didnt work right Hey guys I am making a application form for my website and I have a few questions... After the application is complete and they hit Submit I want a message to come up and say "Thank you for the application" Then it clears all the text boxes etc to default so they know that the application is complete. How do I get that happening? Also I want the application to go to my email however I do not want the application to open a email form, at the moment I have got Code: <form action="MAILTO:contact@xin-gaming.com" method="post" enctype="text/plain"> but that opens up an email form so that they send it as if it was an email which I don't want. I want it to send it to my email but without the applicant knowing that it's going to my email. Sorry for the confusion >< Thank you in advance Hey guys. This is my coding, below, for a form on my site. It's just the default white color (and is too bright for my site's color scheme). Is there any way I can change the color to grey or something else?? THanks in advance!! <form action="http://www.xxx.com/xxx/xxx/xxx.php?group=2" method="post"> <div align="center" style="height:30px;"><font size="1px" color="999999" face="Arial"><b>enter your email address and your info will be emailed to you</b></font></div><div align="center" style="height:30px;"><input name="email" value=" " /></div><div align="center"><input type="image" src="buttons.jpg" size="25" value="Find password" /></div> </form> I''m making a form with three input bars. When the user presses "submit", the contents of the three inputs is put together in a string, which is then sent to a CGI program. Is there any way to add arbitrary text to that string - whether before or after the stuff gathered from the form's inputs - so that my CGI program can know which form called it? ok....i have a htm form that has fields that do a get to a aspx datagrid page. this is done in the action part of the form. i set in the form to target a new winodw but how can i have that new window open with no browser menu? i have googled and found ways to do this in the input onclick but either im setting it wrong or it will not work with the get action Code: <form name="Form1" method="get" action="../lookup/phydatagrid.aspx?tablename=physicians" onsubmit="return validateZIP(this.zipcode.value, this.radius.value, this.name)" target="_blank"> Hi All, I want to change the form action clicking on radio button. I have two radio button. the default action is a1.jsp if I click on update button If I click on second radio button I want to change the form action. I want to redirect to another file (change form action if possible) if I click on second radio button How can I do that ? Thanks please reply soon. Hi All, I want to change the form action clicking on radio button. I have two radio button. the default action is a1.jsp if I click on update button If I click on second radio button I want to change the form action. I want to redirect to another file (change form action if possible) if I click on second radio button How can I do that ? Thanks please reply soon. I have a HTML form that truncates the action parameter after the "?" mark - which is NOT the desired behavior I am looking for. I simply want to open the referenced URL within the same viewport. Here is a representative HTML snippet: HTML Code: <form action="http://www.spufalcons.com/index.aspx?tab=gymnastics&path=gym"> <input type="submit" value="Gymnastics"/> </form> In this case, the submit button takes you to the "http://www.spufalcons.com/index.aspx" page, effectively ignoring "?tab=gymnastics&path=gym" parameter. It appears that URL's using HTML and PHP pages referenced in the action=URL work as expected BUT (alas) this is not the case when the target page contains index.aspx. This behavior is consistent across all major browsers (IE, FF, Safari, Chrome, Opera). Has anyone seen this problem before? Or can suggest an alternative and/or workaround consistent with my "pure" CSS/HTML/PHP web development approach? I have tried replacing the special characters with HTML entity values with no impact. I REALLY don't want to use abandon my CSS-styled submit buttons by using Javascript or button PNG's or image maps. Environment: Web Server: Apache 2.2.14 PHP: 5.2.10 OS: Mac OS X 10.5.8 HTML document info: HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> Hi all, I have a query that I hope somebody can help with as my site has been brought to a standstill because of this problem. I have just posted the new version of my site online and I have a folder below the domain root which contains things like database info, form scripts etc. When I process the form I get a 404 error. the action is something like HTML Code: action="../includes/process_form.php" There is no need to any output from these files as they process the information and direct to the relevant files above the domain root using php header scripts. At the beginning of most of my files I have the following PHP Code: <?php $security = 'secure'; require('../includes/default.php'); require('../includes/error_handlers.php'); require('../includes/db.php'); ?> and there is no problem with these whatsoever. I had all of the scripts working fine when I tested them at domainroot.co.uk/take2/public/ domainroot.co.uk/take2/includes/ Does anybody have any ideas why this is happening Any help would be appreciated John *Disclaimer! I hope this makes sense to somebody! I'm self-taught in HTML so my scripts dont always work properly. In fact, I dont even know if my scripts are in the right order most of the time (for example what goes before and after HEAD/BODY, etc tags). To make things more complicated, theyre part JAVA part HTML and part CSS (is this normal?), but most of the time I can get them to work. Anyhoo, back to the question: Im having a particular problem making an animated cursor that I downloaded to work on my webpage. I downloaded it to my computer- saved it as "tp.ani" and then uploaded it to my directory, so Im assuming theres a problem with my coding somewhere? Could somebody please tell me what I'm doing wrong, I've tried everything! *Before I paste my script below- my main page is broken down into 3 frames... that means that for each frame (since each is a different page) I have to put the cursor script on every individual page correct? Instead of just on the page with the frameset script? Script for top frame: HTML Code: <HTML> <HEAD> <TITLE> MOSHER SERVICES LLC </TITLE> <Script language='Javascript'> <!-- function change(obj,nid) { obj.id=nid; } --> </Script> <Style type='text/css'> <!-- body{cursor:url('tp.ani');} #normBtn{ background-color:#DCDCDC; color:#000000; font-family: occidental; font-size: 13pt; border-style: solid; border-bottom-color: #333333; border-right-color: #555555; border-left-color: #A9A9A9; border-top-color: #F5F5F5 } #btnFocus{ background img src: "water003.jpg"; color:#000000; font-family: occidental; font-size: 13pt; font-weight: bold; border-style: solid; border-bottom-color: #25587E; border-right-color: #4863A0; border-left-color: #87CEFA; border-top-color: #FFFFFF; cursor:hand; } --> </Style> <BODY> <body background="waterswirllong.jpg"> <br> <br> <br> <br><table border="0" width="450" align="center"> <TR><COLGROUP ALIGN="center" span="3"><td><FORM METHOD="link" ACTION="residential.html" TARGET="C"> <input type='submit' value='Residential' TITLE="Click here for a full list of the Residential services we provide" onMouseOver='change(this,"btnFocus")' onMouseOut='change(this,"normBtn")' id='normBtn'/> </FORM></TD> <TD><FORM METHOD="link" ACTION="commercial.html" TITLE="Click here for a full list of the Commercial services we provide" TARGET="C"> <input type='submit' value='Commercial' onMouseOver='change(this,"btnFocus")' onMouseOut='change(this,"normBtn")' id='normBtn'/> </FORM></TD> <TD><FORM METHOD="link" ACTION="excavation.html" TITLE="Click here for the Excavation services we provide"TARGET="C"> <input type='submit' value='Excavation' onMouseOver='change(this,"btnFocus")' onMouseOut='change(this,"normBtn")' id='normBtn'/> </FORM></TD> </TR> </TABLE> </BODY> </HTML> If you'd rather view the source from the actual site it's: www.mosherservices.com/main.html. I hope my question made sense to someone! Please feel free to tell me if I'm doing anything else wrong either. Thanks everyone , 'WebNovice' Kim Okay say if i only want the custom made cursor to be on only one part of the page how would i do that? This is a example of my code <style type="text/css"> body { cursor: url(http://filexoom.com/files/2007/6/16/...e%20Curser.cur), auto; } A { cursor: url(http://filexoom.com/files/2007/6/16/...e%20Curser.cur), url(http://filexoom.com/files/2007/6/16/...e%20Curser.cur), auto; } </style> I don't want it to be the entire page. as you can tell im new at HTML/CSS Hello, I have following div tag where I have a need to change the mouse pointer to a "hand" when it loads. However, this works perfectly fine on IE, but does not work at all on FF. <div id="Div1" class="panel" style=" cursor: hand; margin-right:0.5%; margin-bottom:0.5%;" onclick="javascript:window.open('img_1440.html', '','width=600px,height=400px');" > Please help Thanks, Ruchir Ok so I think I have to use JavaScript in order to achieve this but Im not sure. What I want to do is have a bunch of different pages and have the page numbers below. Kinda like the page numbers in google. I also am wondering how to make a link to go to the next page in the group or to go to the very last one and than back to the first and so on... Any help..sry if I didnt explain it the best Hi i have the following code: <li><a onclick="MM_openBrWindow('Contact.html','Contact','scrollbars=yes,width=650,height=500')">contact</a></li> Now when i go on that link i dont get the hand cursor, it doesnt change. (probably because i dont use 'href') But i dont want the page to chang ejust a popup with a contact form. I have tried by placing: href="index.html" (i thne get the hand cursor) but then it will not only open the popup but also refreshes the page which generates traffic. How can i mak it so that i get the hand cursor and it only opens a popup with the contact form. Thnx |