Jump to content

vijdev

Members
  • Posts

    109
  • Joined

  • Last visited

    Never

Everything posted by vijdev

  1. does not work!
  2. i have a problem wth the area in processData() area below. what my code does is... 1. takes input via form 2.gets success from a post 3.displays latest form input that was submitted to the server DB 4. asks for add another 5. as you add another, it goes on appending all recent adds to server (processData()) to show as a cue problem: first add is ok second add, appends the input twice. 3rd add appends the input thrice..etc... and so on. but it must be once only! <!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"> <head> <title>Manager</title> <link rel="stylesheet" type="text/css" href="../css/style.css"/> <script type="text/javascript" src="../scripts/jquery-1.4.4.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ var g_ID=$('#in').val(); $('#div_add').hide(); $('#res').hide(); $('#recent').hide(); $('#action2').hide(); $('#action3').hide(); $('#fail').hide(); $('#errorlist').hide(); $('#action1,#action2').click( function(){ $('#action1,#action2,action3').hide(); $('#fail').hide(); $('#errorlist').hide(); $('#in').val(''); $('#div_add').show(); $('#in').focus(); $('#res').hide(); $('#recent').hide(); $('#form_add').submit( function(){ var formData = $(this).serialize(); $.post('baseload.php',formData,processData); function processData(data) { if (data==' Added!') { if (!$('#result').length) { $('#res').prepend('<span id="result">... Added!!</span>'); } if (!$('#rec').length) { [color=red]$('#recent').append("<span id='rec'> Added: "); $('#rec').append(g_ID); $('#recent').append("</span>"); } else{ $('#rec').append(","); $('#rec').append(g_ID); $('#rec').append("."); }[/color] $('#errorlist').hide(); $('#res').show(); $('#recent').show(); $('#div_add').hide(); $('#action1').hide(); $('#action2').show(); $('#action3').show(); $('#fail').hide(); return false; } else { if (! $('#fail').length) { $('#div_add').prepend('<span id="fail">Incorrect information. Please try again</span>'); return false; } }return false; } //end not empty-redundant brkt return false;}//end submit function )//end submit }//end click function ) //end click action1,action2 var url='home.php'; $('#action3,#action4').click( function() { location.reload(); } ); }//end doc ready func{} );//end ready() </script> </head> <body> <a href="#div_add" class="common" id="action1" title="Add an " accesskey="a">Add !</a> <div id="div_add" title="Add !"> <form action="baseload.php" id="form_add" name="form_add" method="post" title="Add to DB"> <input type="text" id="in" maxlength="200" size="70" title=" In" name="base" /> <input type="submit" name="b_info" value="Check-In!" id="b_info" /> <button class="common" id="action4" title="Home" accesskey="h">Cancel!</button> <span id="errorlist" class="errors"></span> </form> <br /> </div> <div id="res"> <br /> <button class="common" id="action2" title="Add another " accesskey="a">Add Another </button> <button class="common" id="action3" title="Home" accesskey="h">Am Done for now!</button> </div> <div id="recent" class="recent"> </div> </body> </html>
  3. thank you friends...finally figured out it was a problem with my parser in the IDE..it was set to parse php in CSS, and was reading css as html/plain...
  4. I have pasted the CSS in my first post above. Here's a status update - I have uninstalled all extensions, reinstalled both browsers, turned off mcafee firewall.. Still the same problem!!!!It is only with linked CSS, and only with chrom and firefox, not with IE linked CSS.. @WTFranklin - i understand what you mean but am quite unwilling to let go of the versatility, and not convinced why!!!!
  5. inline style works, though!..ion all 3 browsers!
  6. html: <!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"> <head> <title>Manager</title> <link href="../css/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="div_add" title="Add!" class="errors"> <form action="load.php" id="form_add" name="form_add" method="post" title="Add to DB"> <input type="text" id="in" maxlength="200" size="70" title="In" name="base" /> <input type="submit" name="b_info" value="Check-In!" id="b_info" /> </form> </div> </body> </html> css: .errors{ border-style: dashed; }
  7. its my own domain, and for certain reasons am bound from telling what it its. it is hosted on a shared hosting,the mail belongs to the same domain as is the mail server. it is not gmail. i am only looking on some elaborate information on what is meant by "authentication". if a mail server requires authentication, how does one do it?
  8. yes the from address is that which belongs to the SMTP server
  9. just to clarify myself mail.xyz.com...here i have the actual SMTP server..not xyz but i dont understand the authentication part!.....hmmmmmmmmmm! how do i differentiate or know if an smtp server needs or does not need authentication?
  10. Cags, thanks for the replies.however i am afraid i need some more spoon-feeding!..if anything more that can help me understand this better. thanks.
  11. now does this authentication come from: 1.the mail class setup 2.or something to do in the form script 3.or in php.ini and what kind of authentication would it be?...is it the password thats used to access [email protected] inbox?
  12. can someone pls tell me why doesnt the below code work? i get an error: SMTP server response: 504 Authenticate first (#5.5.0) i have set the smtp server name in my php.ini ####################php.ini############# [mail function] ; For Win32 only. SMTP =mail.xyz.com smtp_port = 25 ; For Win32 only. sendmail_from [email protected] ###############code########################## <?php if (isset ($_POST['submit'])) { $name=$_POST['name']; $message=$_POST['text']." ".$_POST['text']; $to=$_POST['email']; $headers="From: [email protected]"; $subject="Test Mail"; mail ( $to , $subject , $message, $headers); } ?> <html> <head> <title>Say My Name</title> </head> <body> <form action="mailvij.php" method="post"> <table> <tr> <td>Name</td> <td><input type="text" name="name"></td> </tr> <tr> <td>Email</td> <td><input type="text" name="email" ></td> </tr> <tr> <td>Text</td> <td><textarea name="text" rows=5 cols=10></textarea></td> </tr> <tr> <td colspan="2" style="text-align: center;"> <input type="submit" name="submit" value="Submit" /></td> </tr> </table> </form> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.