HTML - Able To Multiply User Submitted #?
All I need to be able to do is take the number that is typed in by the customer to be multiplied by say .682 and pre-populate the form on the next page! Should be simple (maybe?) but I'm stumped yet again!
Please note: the code ALREADY pre-populates the form on the next page. I simply need to be able to multiply it by .682 HTML Code: Pay Your Bill Online <br> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="on0" value="Customer Number">Please Enter Your Customer Number: (Example: 99999999) <br><br> <input type="text" name="os0" /> <br><br> Enter Amount Due : (Example: nnn.nn) <br> <input type="text" name="amount" value=""> <br><br> <br><br> <input type="image" src="https://www.paypal.com//en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> <input type="hidden" name="add" value="1"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="youremail@youremail.com"> <input type="hidden" name="item_name" value="Online Payment"> <input type="hidden" name="item_number" value="OLP-00001"> <input type="hidden" name="no_shipping" value="2"> <input type="hidden" name="shipping" value="0.00"> <input type="hidden" name="return" value="http://www.yourwebsite.com/successorder.html"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="bn" value="PP-ShopCartBF"> </form> Similar TutorialsHey, Ok so on my site it uses Ajax. Now if i try to submit a comment when i click submit it refreshes the whole page and does nothing! After the page had been refresed I can commetn on the script again and it shows the text i entred on the page with no refresh. Why does it refresh the page on the 1st post?? The site is he http://www.runningprofiles.com/members/Admin HTML Code: <div align="center"> <table width="500" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <table style="WIDTH: 500px" cellspacing="0" cellpadding="0" align="center"> <tr> <td align="center"> <strong>What are you doing?</strong></td> </tr> <tr> <td align="center" valign="middle" class="update_box"> <form method="post" action=""> <textarea cols="5" rows="10" id="content"></textarea> <div id="button_block"> <input name="submit" class="comment_button" type="submit" id="button" value=" Share "/> <input type="submit" id='cancel' value=" cancel" /> </div> </form> </td> </tr> </table> <div id="flash" align="left" ></div> <div id="update" class="timeline"></div> <?php $small1=mysql_query("select * from messages2 order by msg_id desc LIMIT 5"); while($r=mysql_fetch_array($small1)) { $id=$r['msg_id']; $msg=$r['message']; $times=$r['time']; ?> <table id="table_<?php echo $id; ?>" width="100%" > <tr> <td colspan="4"> <hr style="COLOR: #6d7b8d; HEIGHT: 1px; BACKGROUND-COLOR: #a9d0f5" /> </td> </tr> <tr> <td valign="top" width="10%" rowspan="2"><img height="40" alt="Pic" src="http://www.gravatar.com/avatar.php?gravatar_id=7d09b47edf3bdbedb4cb104fb507c3df" width="40" border="1" longdesc="http://www.gravatar.com/avatar.php?gravatar_id=7d09b47edf3bdbedb4cb104fb507c3df" /></td> <td valign="top" align="left" width="12%"><strong>Jarratt</strong></td> <td valign="top" align="left" width="63%"> <?php echo $msg.'....'.$id;?> </td> <td valign="top" align="right" width="15%"><div class="UIStory_Hide"><a href="#" id="de<?php echo $id ?>" class="delete_update" title="Delete Update">X</a></div> </td> </tr> <tr> <td align="left" colspan="3"> <span class='feed_link'><a href="#" class="comment" id="<?php echo $id; ?>"><font color="#cc0000">Reply</font></a></span> <span style="FONT-SIZE: 10px; color:#cc0000; COLOR: #a9a9a9"> <?php echo time_stamp($times) ?></span><br /><br /> <?php //Here $id is main message msg_id value. $csql=mysql_query("select * from comments where msg_id_fk='$id' order by com_id "); $comment_count=mysql_num_rows($csql); if($comment_count>2) { $second_count=$comment_count-2; ?> <div class="comment_ui" id="view<?php echo $id; ?>"> <a href="#" class="view_comments" id="vi<?php echo $id; ?>"> <span style="COLOR: #696969"><b>View all <?php echo $comment_count; ?> comments</b></span></a> </div> <?php } ?> <div id="view_comments<?php echo $id; ?>"></div> <div id="two_comments<?php echo $id; ?>"> <?php $small=mysql_query("select * from {$prefix}comments where msg_id_fk='$id' order by com_id limit 2 "); ?> <?php while($r=mysql_fetch_array($small)) { $c_id=$r['com_id']; $comment=$r['comment']; $timeofpost=$r['time']; ?> <table width="80%"> <tr> <td align="center" valign="middle" style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid"> <div class="comment_actual_text"> <table style="WIDTH: 100%; BORDER-COLLAPSE: collapse" align="left"> <tr> <td width="15%" style="VERTICAL-ALIGN: middle; TEXT-ALIGN: center"><img style="WIDTH: 30px; HEIGHT: 30px" alt="srinivas" src="http://www.gravatar.com/avatar.php?gravatar_id=7a9e87053519e0e7a21bb69d1deb6dfe" border="1" /></td> <td width="85%" style="PADDING-BOTTOM: 2px; VERTICAL-ALIGN: top; PADDING-TOP: 2px; TEXT-ALIGN: left"> <strong>Jarratt</strong> <?php echo $comment; ?> <br /><span style="FONT-SIZE: 10px; COLOR: #a9a9a9; COLOR: #a9a9a9">10min ago<?php //echo time_stamp($timeofpost); ?></span></td> </tr> </table> <br /></div> </td> </tr> </table> <?php }?><div id="commentload<?php echo $id; ?>" > </div> </div> </td> </tr> </table> <div id='expand_box'> <div id='expand_url'></div> </div> <div id="fullbox" class="fullbox<?php echo $id; ?>"> <form method="post" action="" name="<?php echo $id; ?>"> <textarea class="text_area" name="comment_value" id="textarea<?php echo $id; ?>"> </textarea><br /> <input type="submit" value=" Comment " class="comment_submit" id="<?php echo $id; ?>"/> </form> </div> <?php } ?> </td> </tr> </table> </div> I am using the following code to submit two forms at the same time - Code: <body onLoad="document.forms[0].submit();document.forms[1].submit();"> <form action="form1.php" method="post" target="_self"> <input type="hidden" name="value1" value="value1"> </form> <form action="form2.php" method="post" target="_blank"> <input type="hidden" name="value2" value="value2"> </form> </body> This does work and the current page goes to the first form's action, but the second form is opened in a new window. This is caused by the target="_blank" but if I don't include this, only the first form is sent. Is there any way I can make the second form run but not follow it (ie make it run in the 'background') or suppress the new window from opening? These two forms have to be separate and use POST, not GET. I only want to follow the first form. (That brings up another question - is it possible to not follow a form at all?) Thanks! I am using a form to submit a name and password for log on. The form is using password type fields. However, once the form is submitted the results are showing in the url query string of the return page. How do I prevent this? Hello All- I'd like to add a user registration and login to my website. So that an individual may log in and be brought to a customized personal screen. Obviously this is some in-depth stuff but I'd like to know how to go about learning how to do such a thing. Any thoughts? thanks! Hey guys very new, have this cool idea for a site and would like to go with it. How can I get a map like this sites. www.skatespots.net Where users can post on the map for others to see. Thank you Sorry if this isn't in the right place. This might have already been answered but I need html code for this. "User input field" redirects to www.website.com/"user input".aspx Simple I think but I am going crazy trying to get it to work. I would like it to open to the page not a frame. Thanks Pete hello, I'm having a little trouble trying to find a solution, maybe I'm just searching the wrong key words as ive spent a hours trying to work this out, what I'm after is a way that once I have created a website, I can add some form of coding or software that allows the website owner/end user to change the content or add pictures easily with out the need to have any knowledge in HTML etc. I know this should be possible as many website company's offer this service and it's also used on the web site building software offered by most hosting providers. If someone could point me in the right direction or just what this type of service is called I would be very greatful. Many thanks Julian Hi, is possible to differentiate css code depending on the operating system of the customers ? for example fonts look different in Firefox using Windows and Firefox using Safari thanks I am working on a page at the moment and I am trying to figure out the best way to let the user know what page they are on. For example... if they click services... maybe the leftnav would go Bold or I could write services on the Top of the page? I was wondering if I could edit the CSS to automate this? I doubt you can do this but just in case here is my css Code: body { margin:10px; background-color:#f0f0f0; font-family:verdana,arial,helvetica,sans-serif; font-size:18px; } #container { width:776px; margin:auto; background-image:url(../images/container-white-bg.png); box-shadow:#333 15px 15px 30px; } #banner { display:block; width:760px; height:120px; padding:8px 8px 0 8px; background-color:#066; } #top-nav { width:768px; height:81px; padding:8px 0 8px 8px; margin:0; list-style-type:none; background-color:#066; } #top-nav li { float:left; margin-right:8px; } #top-nav a,#top-nav span { position:relative; display:block; width:120px; height:81px; } #top-nav span { position:absolute; top:0; left:0; background-image:url(../images/gallery-banner.png); } #mcad {background-position:-8px -8px;} #nios {background-position:-134px -8px;} #moad {background-position:-260px -8px;} #scad {background-position:-386px -8px;} #clou {background-position:-512px -8px;} #what {background-position:-638px -8px;} #nav { float:left; width:120px; padding:0 8px; margin:0; list-style-type:none; background-color:#066; } #nav li { margin-bottom:2px; } #nav a { display:block; width:120px; padding:30px 0; font-family:arial,sans-serif; font-size:90%; font-weight:bold; color:#033; text-align:center; background-color:#699; } #nav a:visited { color:#000; } #nav a:hover { color:#fff; } #content { float:left; width:610px; padding:25px 15px 10px 15px; } #content p { margin:0 0 10px; font-size:90%; color:#000; } #services { font-size:110%; color:#000; } .text-indent { text-indent:20px; } .padding-bottom { padding-bottom:16px; } #footer { clear:both; line-height:30px; color:#000000; text-align:center; background-color:#066; } and here is an example page Contact us Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>MESH, Inc. - Contact us</title> <link rel="stylesheet" type="text/css" href="css/main.css"> </head> <body> <div id="container"> <img id="banner" src="images/topbanner.png" alt="top banner"> <ul id="top-nav"> <li><a href="mcad_project.html">mcad<span id="mcad"></span></a></li> <li><a href="niosh_project.html">niosh<span id="nios"></span></a></li> <li><a href="mcad_project.html">mcad<span id="moad"></span></a></li> <li><a href="mcad_project.html">mcad<span id="scad"></span></a></li> <li><a href="cloud_mapping.html">cloud<span id="clou"></span></a></li> <li><a href="#">what<span id="what"></span></a></li> </ul> <ul id="nav"> <li><a href="home.html">Home</a></li> <li><a href="products.html">Products</a></li> <li><a href="services.html">Engineering Services</a></li> <li><a href="projects.html">Projects</a></li> <li><a href="publications.html">Publications</a></li> <li><a href="contact_us.html">Contact Us</a></li> <li><a href="about_us.html">About Us</a></li> </ul> <div id="content"> <p>If you would like to get in touch with us about the services we can offer, please email us</p> <p> </p> <p>For general enquiry <a href="mailto:info@meshoxford.com">info@meshoxford.com</a></p> <p> </p> <p>For business development <a href="mailto:meshengineering@meshoxford.com">meshengineering@meshoxford.com</a></p> <p>or call us at 610-932-7754 </p> <p>MESH is located on 114 Barnsley Road, Oxford , PA 19363</p> <p> </p> </div><!-- end #content --> <div id="footer">Contact Us via phone 610-932-7754 or email <a href="mailto:info@meshoxford.com">info@meshoxford.com</a></div> </div><!-- end #container --> </body> </html> Thank you in advance M i have a windows live website, its the free basic version, the purpose of the site is to display minutes from meetings and other general info, however i would like to make the info private and was wondering if it would be possible to do this with html/xhml, i have the form script to login from the homepage but am unsure how to procceed with creating the users id's and passwords any help for a novice would be appreciated regards and thanks john www.erctrw.com Hi, I know how to make a username and password input form, and the submit button that is not the problem. My problem is that I have designed a background in PS.http://photoupload.org/uploads/13269813681.jpg And before anyone *****es at my for putting 'Shrimps' yes I know it is wrong. But this is for a gaming team I am in, and none of them are English. And they think that Shrimps sounds and looks better than Shrimp even though Shrimp is the correct plural. Anyway Back to the matter at hand. If you look at the background I designed, in the top left it has two boxes which is where I want to put the user and pass forms. But I don't want the boxes that naturaly come with the forms. And for the life of my I can't figure it out, I don't know weather it is HTML, XML or CSS, any help on how to get rid of the boxes that come with that would be highly appreciated, Thanks //Dave Well first off I would like to say hello to the community here. I recently got an idea for a website. That with some time and hard work I think has the potential to turn over a decent profit. I just got the Domain name registered and Webhosting with www.fatcow.com I know just about nothing about html, xhtml , css all that stuff. I mostly used the computers to copy backup games for all my game systems. Then a collection of software. Then I run 5 computers on World Of Warcraft to bot characters. I've had to install 2 seperate comcast service plans and Verizon Fios to keep up with my computer demands. Also need the DSL to change ip's to AutoMouse free rapidshare points, Then accounts. So I do ok with computers, But this website stuff has my head spinning. I am intending to use Adobe Photoshop CS4 to Creat my template. Then going to try and use DreamWeaver CS4 to create the html ( if its called that..lol ) I've watched a ton of tutorials on the photoshop and finally got a basic template that I would like to go with. I am just paused at this time cause I was reading into the different screen resolutions. I created my template at 860 / 580 .. Also one at 955/600 I uploaded them both to my webhost background only, but they look so funny to me. Could someone help me to get the auto resolution going on this ? http://www.itemraffle.com is the site name. I you could view source and let me know what needs to be there. Its only like 6 lines long now. I also don't think I added the actual template I created in there the right way. I just saved the photoshop file as a jpeg then uploaded it the server and added a html image tag. Question 1 of I'm sure a million !! l I've figured out how to embed YouTube videos into a vBulletin installation of mine. How would I go about making a vertically expanding table that expand when the user would click on the "YouTube" text? I'm thinking of starting out out as a size maybe 100px high and 400px wide, and expand to 375px high and 450px tall. I've checked Google, but nothing seemed to come up that I could use. Hello. I have a website all based in php-fusion, and before it, I had one based on php-nuke on the same address. Since I upgraded, every user who was automatically logged in the old site, when visits the new page, get a error message, because php-fusion is searching in his cookies info witch is mismatched, because it were made by Php-Nuke. So, I wanna create a welcome page, all in HTML, telling the user about the error and also telling him how to erase the mismatched cookies, and when he click in "proceed to home page", the site saves a cookie in his computer, and when he visit the page again, he will be automatically redirected to the home page. How can I do that? Hello.... I have a problem today and I do not know how to over come this problem. If this is in the wrong place, please tell me and I will put it in the right place. Anyway. Today I am trying to make a webpage, where the user, the admin, is able to edit the page to input text. Almost like when you make a blog post and you have a text box and you type what you want and you click submit or post and it goes onto a page. Almost like wordpress. I want to make a custom page from the ground up where there are different divisions of the page and the admin can input or edit text/pictures at anytime. Thank you in advance. Hi, i'm an expereinced PC user, and am just getting into web design, thought you could help. I've got the basics of a website developed, i just need to get the difficult bits done now...just! I've split it up into two points... a) Basically I want users to add a page that I haven't got on my site, (for example, if my website was about bands, one could fill in a form with the title of the band and a few pieces of info. and then that information is taken and a page is created (the page has standard information the same as the rest of the pages, but the details the user entered are on the page)). b) Secondly I want to add to a page a text box one can type into, click submit (basically a review) and that typing be added to that page. I'm assuming some sort of database would be required, but im really not sure how to go about it. Any help would be great Many thanks Hi, I'm new here and need a simple question answered: I have a store I am putting online, the store resides in a folder under the main folder so I need to have the index.htm in the main folder redirect the user to the index.htm in the store folder. I'm a bit rusty on my html skills, CRS is begining to raise it's ugly head, and can't for the life of me remember how to do it or find a reference to it. hi, i created a html form. Can i show watever data that key in by the user under the form? Following is my coding. <html> <head> <title>Websites</title> </head> <body bgcolor="#ffffff"> <h1>Goverment Websites</h1> <form action="form_action.asp" method="get"> Website address: http://<input type="text" name="website" size="60"/> destination:<input type="text" name="destination"size='30" <input type="submit" value="Submit" /> </html> Can you please guide me so that whatever data that key in by user will be shown under the same html pagr too.. thanks :-) Hi, I've recently started a website for a game i belong to and i have things like news items and feedback items, but i want my viewers to be able to post their comments on them and maybe leave a rating out of 5 stars or something like that for each item. I have only just recently started learning coding and this is my first site, so i'm not very experienced yet. But i have used a few php bits to create feedback forms, would it need that sort of thing? Or could it be done simply in html or javascript? If anyone knows of any online tutorials which cover this sort of thing i would appreciate it! |