Jump to content

atomicc

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

atomicc's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I use the Avon website to record customer orders from my wife. But I already have all requests on my computer in a Excel sheet. So i don't wanna retype all the orders or copy/paste,m because there are many fields and is prone to errors. How XML can help me with this? Do you have an example? Similar issues happen with other websites I use.
  2. Hello, I'm a newbie in XML and need your help. Is it possible to create xml files (or other technology) that feed web forms? I use several sites that need to be populated with multiple records and would like to do something more automated, but I don't know how to start. Thanks in advance. Atomicc
  3. Thanks a million. You're the man. It works fine now. wtg, jcbones!!
  4. Ok, let's post it. Here's the code: <?php if(isset($_POST['submit'])) { header('Status: 200'); header('Location: ' . $_SERVER['PHP_SELF'] . '?pass=true'); } elseif(isset($_GET['pass'])) { $message = 'You have successfully posted the form, now hit f5 for refresh.'; } else { $message = 'Please submit the form.'; } ?> <!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> </head> <body id="index" class="standard" > <form name="fbrlink" action="" method="post"> <p> <?php echo('<input name="sbrlink" id="B1" type="button" value="Broken Link?" style="border:none; background-color:#FFFFFF; font-family:Trebuchet MS; font-size:15px; font-weight:bold; color:#1A4877; cursor:pointer; display:block; text-decoration:underline;" onclick="this.form.submit();"/>'); ?> <?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['QUERY_STRING'] == 'page=ok') { $a=$_SERVER['PHP_SELF']; echo '<script type="text/javascript" >confirm("Click OK to notify us.");</script>'; mail("contact@ctt.net","report broken link","Game notified:MarioBros"); echo '<script type="text/javascript" >document.fbrlink.sbrlink.disabled = true;</script>'; ?> <script type="text/javascript" >document.fbrlink.action='<?php echo $a; ?>'; alert('<?php $_SERVER['QUERY_STRING'];?>'); </script> <?php } else {} }else{ } ?> </p> </form> </body> </html> Thanks in advance.
  5. Thank you, onlyican, your tip is very welcome. I'll give it a try. Tyvm.
  6. really, jcjones, the ideal is to use a separate page, but this a game site and there is no need to redirect them to other page, even if it doesn't works. I've put your code at the beginning of the php file, but the button doesn't submit (for example, I can't see the alert generated by js. ) I also have put only the following piece.. echo '<script type="text/javascript" >confirm("Click OK to notify us.");</script>'; mail("contact@ctt.net","report broken link","Game notified:MarioBros"); echo '<script type="text/javascript" >document.fbrlink.sbrlink.disabled = true;</script>'; ...after your phrase $message = 'Please submit the form.'; what causes continuous mail sending, even if I don't click the button submit. where's the error??
  7. I've never needed a cookie before. How can I use a cookie? jcbones, I didn't understand what you mean. How can I use a submit before a <HTML> tag? how this will prevent the browser update? Thank you for your answers.
  8. Hello, guys. I'm using the following code to send me an automated mail in case the user find a broken link. But there are 2 problems: 1) after submitting I'd rather not disrupt their game by refreshing the page. So, is there any way to send mail without the post refreshing? 2) if the user hits F5, the page reloads and the code runs again, sending two or more times the same email. How can I avoid duplicated emails caused by manual browser refresh? (the most important solution currently is how to to avoid duplicated entries, in case an ajax solution is too hard to post here.) <form name="fbrlink" action="<?= $_SERVER['PHP_SELF']."?page=ok" ?>" method="post"> <?php echo('<input name="sbrlink" id="B1" type="button" value="broken Link?" style="border:none; background-color:#FFFFFF; font-family:Trebuchet MS; font-size:15px; font-weight:bold; color:#1A4877; cursor:pointer; display:block; text-decoration:underline;" onclick="this.form.submit();"/>'); ?> <?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['QUERY_STRING'] == 'page=ok') { echo '<script type="text/javascript" >confirm("Click OK to notify us.");</script>'; mail("contact@ctt.net","report broken link","Game notified:MarioBros"); echo '<script type="text/javascript" >document.fbrlink.sbrlink.disabled = true;</script>'; ?> <script type="text/javascript" >document.fbrlink.action='<?php echo $a; ?>'; alert('<?php $_SERVER['QUERY_STRING'];?>'); </script> <?php } else {} }else{ } ?>
×
×
  • 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.