Jump to content

Ninjakreborn

Members
  • Posts

    3,922
  • Joined

  • Last visited

Everything posted by Ninjakreborn

  1. I thought C# was a language you could use on the web like php. I have seen people claim in there portfolio (for a website) they had had used C# to create an entire custom CMS to give the site the most power it could have. In the end someone just said up there, that C# can't output to the browser like PHP can, but only outputs HTML. I thought it would be just like PHP to learn.
  2. It looked like the correct usage. Thanks for all the feedback though, that helps a lot. SO it's not technically the site/country/situation that prevents "cryptographical use" it's the location of the web hosting company.
  3. whoa no wonder they say it's so hard to learn it. I never thought it was like that.
  4. If I had a client, that was based out of a specific country that did not allow the use of cryptography because of the "Cryptography Laws" they released can I be legally held responsible for building "them" something. Meaning if they are from a state that outlaws it, and I build them a site targeted towards general public, am I still breaking the law. On another note why have they even created cryptography laws in the first place.
  5. Hmm, so you really intend to let someone with that name run around on the boards, kid's come here too.
  6. <?php echo 04 - 1; ?> that echo's 3 I need it to echo 03, is there an easy way to do this?
  7. Hehe, it was one of those dumbass things that caused it. I had the login form disappearing when they logged in, but I had the start tag for it outside the if, and the rest of it, inside. So the form was started way up there, and was set to action for the homepage, and it kept sending them there, and I didn't see the form field way at the top. Problem fixed, next time I know what to look for, that was very strange at first, there always seems to be a logical solution when things like this happen, thanks again. (maybe this'll help someone else in the future.)
  8. This is strange, and far from cool. The thing is, it's messing up in firefox, ie, and other browsers. It's also strange, I have them there, there is no javascript throughout the page or anything that could interfere with it. I have also validated both the xhtml/css to make sure it's valid, and it's 100% valid. Any advice here, it's strange because only about 3 forms on here are messing up, the rest are fully functional.
  9. <form name="editaccount" id="editaccount" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table> <tr> <td><label for="firstname">First Name:</label></td> <td><input name="firstname" id="firstname" type="text" maxlength="150" value="<?php echo stripslashes($row['firstname']); ?>" /></td> </tr> <tr> <td><label for="lastname">Last Name:</label></td> <td><input name="lastname" id="lastname" type="text" maxlength="150" value="<?php echo stripslashes($row['lastname']); ?>" /></td> </tr> <tr> <td><label for="email">*Email:</label></td> <td><input name="email" id="email" type="text" maxlength="150" value="<?php echo stripslashes($row['email']); ?>" /></td> </tr> <tr> <td><label for="password">*Password:</label></td> <td><input name="password" id="password" type="password" maxlength="150" /></td> </tr> <tr> <td><label for="verifypassword">*Verify Password:</label></td> <td><input name="verifypassword" id="verifypassword" type="password" maxlength="150" /></td> </tr> <tr> <td colspan="2"><label for="abilities">Abilities:</label></td> </tr> <tr> <td colspan="2"><textarea name="abilities" id="abilities" rows="10" cols="30"><?php echo stripslashes($row['abilities']); ?></textarea></td> </tr> <tr> <td colspan="2"><label for="aboutyou">About You:</label></td> </tr> <tr> <td colspan="2"><textarea name="aboutyou" id="aboutyou" rows="10" cols="30"><?php echo stripslashes($row['aboutyou']); ?></textarea></td> </tr> <tr> <td></td> <td><input name="submit" id="submit" type="submit" value="Edit Account" /></td> </tr> </table> </form> Ok, here is the form. When I view the source the <form> part isn't being recognized in the browser, this is very strange, any advice?
  10. This is a little strange. One site I am working on, I am finding out that right now that I am in testing phase, every form (sometimes) I try to submit it does nothing but sends them back to the homepage. You go to the form, fill it out, submit, and it sends them back to the homepage like nothing ever happened. I can show code, but it's happening on all forms, and I did nothing different that I never did before (and there are no "header" redirects, or html redirects, or javascript redirects anywhere. Any advice on what could cause this.
  11. I use to, but I sort of ended up stopping. I suppose it's better to, but I ended up just falling out of habit over time, because I don't normally get them wrong (I was in a hurry when I created that one). Most of the time they get right the first time. If they don't I normally do error handling on them.
  12. <?php $category = mysql_real_escape_string($_GET['category']); $select = "SELECT * FROM embarrassing WHERE category = '$category' AND approved = 'yes'"; while ($row = mysql_fetch_array($select)) { echo '<a href="embarrassing2.php?id=' . $row['id'] . '" title="' . stripslashes($row['title']) . '">' . stripslashes($row['title']) . '</a>'; echo '<br />'; } echo mysql_error(); ?> That is returning Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /homepages/################# on line 31 Any advice on what could be wrong with that query. The data is passing properly, very strange... Any advice?
  13. If all fields are required then you can check that pretty easily <?php foreach ($_POST as $k => $v) { echo $v . " is a required field.<br />"; } ?>
  14. <?php if (!empty($_POST['submit'])) { $regexemail = "^[A-Za-z0-9\._-]+@([A-Za-z0-9][A-Za-z0-9-]{1,62})(\.[A-Za-z][A-Za-z0-9-]{1,62})+$"; $errorhandler .= ""; if ($_POST['yourname'] == "") { $errorhandler .= "You left the name field blank<br />"; } if ($_POST['emailaddress'] == "") { $errorhandler .= "You left the email address blank<br />"; } if ($_POST['emailaddress'] != $_POST['verifyemail']) { $errorhandler .= "The email addresses do not match.<br />"; } if (!ereg("$regexemail", $_POST['emailaddress'])) { $errorhandler .= "The email address is improperly formatted<br />"; } if(!(getmxrr(substr(strstr($_POST['emailaddress'], '@'), 1), $temp)) || checkdnsrr(gethostbyname(substr(strstr($_POST['emailaddress'], '@'), 1)), "ANY")) { $errorhandler .= "The Domain name for the email address does not exist<br />"; } if ($_POST['regarding'] == "") { $errorhandler .= "The Category field was left blank<br />"; } if ($_POST['specialinformation'] == "") { $errorhandler .= "The Special Information field was left blank<br />"; } if ($_POST['description'] == "") { $errorhandler .= "The Description field was left blank<br />"; } if ($errorhandler != "") { echo "<span style=\"color:red;\">"; echo "$errorhandler"; echo "</span>"; }else { $visible = "false"; $message = " Name: {$_POST[yourname]} Email Address: {$_POST[emailaddress]} Contact Phone: {$_POST[contactphone]} Category: {$_POST[regarding]} Special Information: {$_POST[specialinformation]}; Description: {$_POST[description]} "; mail("businessman332211@gmail.com", "Freelance Businessman Contact Form", $message); echo "Thank you for Contacting me. I will respond within 1-24 hours at the latest."; } } ?> <?php if (empty($visible)) { ?> <form name="contact" id="contact" action="contactme.php" method="post"> <dl> <dt><label for="yourname">*First Name:</label></dt> <dd><input name="yourname" id="yourname" type="text" maxlength="80" size="30" value="<?php echo $_POST['yourname']; ?>" /></dd> <dt><label for="emailaddress">*Email Address:</label></dt> <dd><input name="emailaddress" id="emailaddress" type="text" maxlength="80" size="30" value="<?php echo $_POST['emailaddress']; ?>" /> </dd> <dt><label for="verifyemail">*Verify Email:</label></dt> <dd><input name="verifyemail" id="verifyemail" type="text" maxlength="80" size="30" value="<?php echo $_POST['verifyemail']; ?>" /></dd> <dt><label for="contactphone">Phone:</label></dt> <dd><input name="contactphone" id="contactphone" type="text" maxlength="80" value="<?php echo $_POST['contactphone']; ?>" /> </dd> <dt><label for="regarding">*What is this related Too!</label></dt> <dd><input name="regarding" id="regarding" type="text" maxlength="80" size="30" value="<?php echo $_POST['regarding']; ?>"/></dd> <dt><label for="specialinformation">*Purpose for contact</label></dt> <dd><input name="specialinformation" id="specialinformation" type="text" maxlength="120" size="30" value="<?php echo $_POST['specialinformation']; ?>" /></dd> <dt><label for="description">*Message</label></dt> <dd><textarea name="description" id="description" cols="30" rows="20"></textarea> </dd> <dt> </dt> <dd> <input name="submit" id="submit" type="submit" value="Send Message!" /> <input name="reset" id="reset" type="reset" value="Clear Data!" /> </dd> </dl> </form> <?php } ?> I don't really understand what you are asking, but if you are wanting to be able to record many different errors I use an "error handler". you could also use it as an array or anything else. There are hundreds of way's, this is just one quick example off of something quick, just so you can see one possibility.
  15. Your right obsidian, I should have seen the functions first. Copy/paste the functions you are using here, and we will provide feedback on how to get your "script" to work.
  16. You could keep it simple, instead of using functions for something like that (or else show me the functions). What I do is register a session $_SESSION['logged'] = "yes"; then you can check it numerous way's. At the top you can have if ($_SESSION['logged'] == "yes") { // show page }else { header("location: send them"); } there are other options, if you want a quicker way a simple. if ($_SESSION['logged'] != "yes") { header("Location: whatever"); exit(); } There are multiple way's, if not then show me the functions you are trying to use for that part.
  17. Depends, if you KNOW who they are you can just use an "array" of all the email addresses. You can always use flatfile, or csv. Another thing I would keep in mind, if you are going to be doing Mass Mails, you probably want to avoid using "just" php. What the www.php.net website recommends http://us.php.net/manual/en/function.mail.php They recommend the "http://pear.php.net/package/Mail_Mime" package. I personally recommend the "phpmailer" class located at phpmailer.sourceforge.net
  18. It wouldn't be fair for us to "program" it for you. http://www.google.com/search?hl=en&q=basic+curl+tutorial&btnG=Google+Search Since you are looking for something pretty basic "with" curl. I can understand it can get frustrating dealing with, because there are hardly any tutorials out there for it. I mean w3schools.com doesn't even have a part on that yet. Look around for some tutorial's, work up a rough bit of code and then let us help you to make sense of it and make it work.
  19. I am disabling form fields with javascript. function start() { form1.relate.disabled = true; form1.tl2.disabled = true; form1.ftn2.disabled = true; form1.ltn2.disabled = true; form1.a12.disabled = true; form1.a22.disabled = true; form1.tc2.disabled = true; form1.psc2.disabled = true; form1.phone2.disabled = true; form1.email2.disabled = true; } // this launches the start function on load. onload = start; function enable() { form1.relate.disabled = !form1.activate.checked; form1.tl2.disabled = !form1.activate.checked; form1.ftn2.disabled = !form1.activate.checked; form1.ltn2.disabled = !form1.activate.checked; form1.a12.disabled = !form1.activate.checked; form1.a22.disabled = !form1.activate.checked; form1.tc2.disabled = !form1.activate.checked; form1.psc2.disabled = !form1.activate.checked; form1.phone2.disabled = !form1.activate.checked; form1.email2.disabled = !form1.activate.checked; } But it's still passing those fields to the php page even when there disabled, any advice.
  20. I am not that great visually, so 50% of the time what I say I like looks good, but 50% what I say I like look's bad. So thanks for the corrections obsidian.
  21. Thanks for all the help. I have never used C alpha either but I saw the functions. later on I want to go ahead and looking into the C-type library see what all they have to offer. Thanks.
×
×
  • 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.