99 Topics

Member Avatar for
Member Avatar for Fiorentino01^

Hi guys I need some help again.I am designing a web site for a small hotel.The site is done I have a form to check room availability.When I click on a small calendar img the calendar pops up and I can insert dates of arrival and departure.I also have some …

Member Avatar for adam_k
0
201
Member Avatar for thetwig

The form submits even when there are validation errors. How do I disable the submit button when there are validation errors? Here is the .js file ,submitFu:function(){ _.validateFu(_.labels) if(!_.form.has('.'+_.invalidCl).length) $.ajax({ type: "POST", url:_.mailHandlerURL, data:{ name:_.getValFromLabel($('.name',_.form)), email:_.getValFromLabel($('.email',_.form)), phone:_.getValFromLabel($('.phone',_.form)), //fax:_.getValFromLabel($('.fax',_.form)), //state:_.getValFromLabel($('.state',_.form)), message:_.getValFromLabel($('.message',_.form)), owner_email:_.ownerEmail, stripHTML:_.stripHTML }, success: function(){ _.showFu() } }) }, showFu:function(){ …

Member Avatar for LastMitch
0
276
Member Avatar for thetwig

I bought a template online and i'm trying to develop a website and I'm stuck on the contact form. I can't seem to get it to submit. When I click submit it just remains static, but i'd like to get it to run the action- that is go to the …

Member Avatar for thetwig
0
318
Member Avatar for mmcdonald

My form won't submit... nothing happens when clicking the submit button. Any ideas? N.B. I am knackered, I've been up 26 hours :/ Thanks in advance for any suggestions! <form action="contact_me.php" method="post" class="contact-form" id="contactForm"> <div class="controls controls-row"> <div class="control-group span6"> <input class="span12" name="name" placeholder="your name" type="text" /> </div> <div class="control-group …

Member Avatar for mmcdonald
0
251
Member Avatar for Fiorentino01^

Hi, I am doing Home & Learn PHP Tutorial.I got to the lesson about forms. I keep getting this error: PHP Notice: Undefined index: username in C:\inetpub\wwwroot\basicForm.php on line 7. This is the code: <!DOCTYPE HTML PUBLIC -//W3C/DTD HTML 4.01 Transitional//EN"> <html> <head> <title>A Basic Html Form</title> <?PHP $username = …

Member Avatar for Fiorentino01^
0
252
Member Avatar for dartiss

Hi, I have an urgent issue. I have a screen that allows the user to select something from a drop-down and then submit it. The form directs to the same page where, if data has been supplied, processing occurs based upon their drop-down selection. What I want to do is, …

Member Avatar for Biiim
0
146
Member Avatar for <M/>

So, I installed the recaptcha into my site... and I don't know why it doesn't verify... You can submit the form with out worrying about the code you have to type in so that recaptcha verifies the form. So... I have a form that shows recaptcha, but it doesn't verify... …

Member Avatar for <M/>
0
593
Member Avatar for vanderbergit

Hello DaniWeb forum users, Thank you for reading my post. I am trying to build a function that checks the content of the form.. My HTML website contains a dynamic number of elements (with a standard of 5 elements) Each element contains 2 input text fields and a jqueri slider. …

Member Avatar for AleMonteiro
0
161
Member Avatar for f2key

Hi Team.. My name is Khalid and the owner of f2key.com See you arround Thanks Khalid

Member Avatar for np complete
0
145
Member Avatar for orbissol

Hi, My boss has asked me to create a page where customers insert all the data we need to know who they are, his idea is to email them automatically with a link to the payment page, but he wants it to also drop us an email saying that someone …

Member Avatar for pritaeas
0
58
Member Avatar for Sabryan
Member Avatar for David Hanes
0
507
Member Avatar for turpentyne

I need a fresh set of eyes. I'm trying to redo a page from scratch, and simplify things. I've gotten a "beginner-stumping" error. And I'm a beginner, so that makes it harder. It's a page where the user makes a selection from a form with fields generated by a database. …

Member Avatar for turpentyne
0
128
Member Avatar for subrata_ushasi

Hi all , I have one text box and submit button . I want to submit one by one value into the box and these values will be displayed one by one serially on the page . ex. aaaa then bbbb then cccc then will display <input type="text" name="txt" value=""><input …

Member Avatar for subrata_ushasi
0
173
Member Avatar for aaloo

this is my javascript for validation of a form .It works perfectly <script type="text/javascript"> function validateForm() { var x=document.forms["contacts-form"]["email"].value; var atpos=x.indexOf("@"); var dotpos=x.lastIndexOf("."); if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid e-mail address"); return false; } var x=document.forms["contacts-form"]["name"].value; if (x==null || x==""||x=="Name:") { alert("First name must be filled …

Member Avatar for diafol
0
1K
Member Avatar for muthukumar46

protected void Button1_Click1(object sender, EventArgs e) { string sql = "INSERT INTO user(CustomerName,Age,Sex,Email address,State,City,Country) VALUES (@Val1,@Val2,@val3,@val4,@val5,@val6,@val7,@val8,@val9,@val10)"; try { SqlConn.Open(); SqlCommand cmd = new SqlCommand(sql, SqlConn); cmd.Parameters.AddWithValue("@Val1", txtcname.Text.ToString().Trim()); cmd.Parameters.AddWithValue("@Val2", txtAge.Text.ToString().Trim()); cmd.Parameters.AddWithValue("@Val3", txtsex.Text.ToString().Trim()); cmd.Parameters.AddWithValue("@Val4", txtEmail.Text.ToString().Trim()); cmd.Parameters.AddWithValue("@Val5", txtaddress.Text.ToString().Trim()); cmd.Parameters.AddWithValue("@val6", DrpState.SelectedItem.ToString().Trim()); cmd.Parameters.AddWithValue("@Val7", DrpCity.SelectedItem.ToString().Trim()); cmd.Parameters.AddWithValue("@Val7", DrpCountry.SelectedItem.ToString().Trim()); cmd.CommandType = CommandType.Text; cmd.ExecuteNonQuery(); } catch (System.Data.SqlClient.SqlException ex) { …

Member Avatar for Mitja Bonca
0
140
Member Avatar for divsok

how can i submit a form when the page is loading..my code is here <div id="main_div"> </div> <s:form action="getpagethreads" id="ini"> <sx:submit targets="main_div" value="submit" /> </s:form> actually i don't need to show any buttons in my form...what can i do for that?

0
96
Member Avatar for kaleem_ullah

I have developed a contact us page and also PHP code that works perfect. Know the only problem is that after submitting the form it shows only "Message sent" on a new page. I want that after submitting the form page will redirect back to home page. It is only …

Member Avatar for cjohnweb
0
3K
Member Avatar for XxDireShadowxX

Hi I am creating my first webpage using DreamWeaver CS5.5. I am trying to work on a contact me page and I want the submit button to automatically send me an email with the information provided in the form. I have found a lot of stuff on the internet on …

Member Avatar for XxDireShadowxX
0
256
Member Avatar for Mko_

So, I have this following snippet of code: if (isset($_POST['type1'])) { mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error()); } if (isset($_POST['type2'])) { mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error()); } if (isset($_POST['type3'])) { mysql_query("UPDATE table SET …

Member Avatar for fobos
0
122
Member Avatar for Marseline

hi, i want to design a website where only students from a certain university can access by logging in how do i make this using dreamweaver and MY SQL as the database. for example if daniweb was only meant for people from USA and someone from africa tries to sign …

Member Avatar for pritaeas
0
119
Member Avatar for diafol

Noticed that the submit a reply button has to be clicked twice in order to submit. Is this supposed to happen?

Member Avatar for diafol
0
164
Member Avatar for daydie

Hello guys i'm getting a massive memory leak which over period of 1min its increase alot and always increases. How to i prevent the memory stacking? I looked all around the internet as im not just posting coz im lazy, i cant find a solution for my code. [CODE] Private …

Member Avatar for daydie
0
1K
Member Avatar for EatingGennaro

I am trying to make a software that signs up for hotmail etc. I am running into a couple of problems with the choosing of the birth date and clicking the submit button. I am newer to coding. So here is my code I have tried so it will enter …

Member Avatar for codeorder
0
134
Member Avatar for doomhades666

How can i get selected text in web page and put it on textbox? This is the text that i want to copy. [URL="http://i1059.photobucket.com/albums/t432/doomhades666/1-1.png"]http://i1059.photobucket.com/albums/t432/doomhades666/1-1.png[/URL] This the page source of the web page [CODE]<div class="output"> <h1 class="titlebar">Calculator Output</h1> <div style="padding: 1.2ex;"> <pre>Simplifying -2x + 3y = 8 Solving -2x + 3y …

Member Avatar for codeorder
0
1K
Member Avatar for qwertpink

Hi all, im sorry, im just a beginner, I had never come across to such circumstances. Submit a form, with while loop, how am i going to retreive every single value submitted from the form? [ICODE] <form name="pay" action="pay.php" method="post"> <?php while ($row = mysqli_fetch_assoc($result)) { echo ' <th width=70% …

Member Avatar for qwertpink
0
3K
Member Avatar for leechyeah

Dear, I am making an ordering form and all of the products' data are stored in a MySQL database. The menu form to select products are all [B]working with plain HTML[/B] not php echo's. But now I can change products' info via a separate web page by updating the MySQL …

Member Avatar for leechyeah
0
383
Member Avatar for phfilly

Hi! I would just like to know if its possible to give an linked image the ability to send the form instead of a submit button? Like in the example below: [CODE] <form method="post" action="Search.php"> <table id="search"> <tr> <td> Search: <input type="text" name="search" id="search" placeholder="Search for friends"/><td><a href="Search.php" action="Search.php"><img src="graphics/search.png" …

Member Avatar for selina12
0
144
Member Avatar for rajesh1158

I'm very much depressed with the following code. As for me, everything is correct. But the Goddamn code doesn't work. I've a html form with radio buttons and a hidden field. On clicking Submit, the form does not submit. Trying print_r($_POST) on the submitted radio button variable, it returns an …

Member Avatar for Zahinize
0
986
Member Avatar for klemme

Hi all, This is a ? about Ajax, PHP and form processing. When I submit the form further below, nothing happens! I didnt set the form-"action" to anything. I left it out, to make the form submit to the same page, so I can validate on the same page too …

Member Avatar for McLaren
0
214
Member Avatar for klemme

Hi all, This is a ? about Ajax, PHP and form processing. When I submit the form further below, nothing happens! I didnt set the form-"action" to anything. I left it out, to make the form submit to the same page, so I can validate on the same page too …

0
75

The End.