Jump to content
Larry Ullman's Book Forums

abigail

Members
  • Posts

    184
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by abigail

  1. I'm not an html expert, for sure, but these are the ideas I have, in case I had such a problem, what I would try. For the bleeding, maybe you could try to place the text inside of some other entity. Such as a text editor box (maybe even a form textarea). Think of an application that would handle the text for you. Otherwise, probably the only thing you can do is parse it yourself and break it with spaces. (Think like the html program 'thinks'. It expects to see 'ordinary' things. It doesn't try to handle everything and anything but it tries to deal well with the usual and common.) For your second problem, you should test this when you have no bleeding text. The bleeding text and certain other errors will cause very odd placement of other sections on the page.
  2. Actually, I think they are sending the email some other way. On further testing, that preg_match did work for me. You can delete the post, Larry.
  3. Can you please tell me how to change this preg_match, which is trying to stop the html anchors. I think this has been working up until recently. Someone is placing links within the email. I also include one of the email that got through. Is it because the <a is on one line and the html is on the next line? my code: // check for html links and not permitted if (preg_match('/<a\s/', $scrubbed['comments'])) { echo '<p style="font-weight: bold; color: #C00">Not Permitted.</p>'; } else { // no html anchor the email: <p>hi!<br>for a while I wasnt feeling like myself this caught my eye right away its crazy how the tables have turned check out what I mean<br><a href="http://ansel.pl/GaryBailey15.html">http://ansel.pl/GaryBailey15.html</a><br>see you later</p>
  4. Good. Glad you have it working. Similar to our suggestions.
  5. Perhaps the easier way to get what you want is to use textarea instead of text.
  6. The reason you are having trouble is you are trying to combine HTML with create_form_input(). Please post your code that is close to what you want and say what change you want to make. Otherwise, we are answering the wrong question.
  7. Marie, I will try to help you, even though I expect this will bring forth a flurry of replies saying what I am telling you is wrong. You decide for yourself. In my first post to your question, I told you how to do this, giving example of my own code. Someone else said 'use CSS' and later someone gave an actual example. Probably you didn't notice that because maybe like me, I expected CSS to be in a separate file, but of course it doesn't have to be. It is right in with the HTML. Look closely and you will see it. So you can try either of these methods and see how they work for you. I have never done this with CSS (other things I do with CSS but not forms) so I can't say anything about if that will work for you or not. I might suggest that you use my method and then if that works for you, you can then modify that to use CSS to make it the way it 'should be'.
  8. I'm using FF but version 2, which I am stuck with because of my old computer.
  9. I noticed you did say it is a forum. If the site provides you with a website to sell your products then I have seen a similar statement which I interpreted to mean they could sell my product, any way they wanted (and I would have to provide fulfillment). I couldn't edit my post. The error message was: ReferenceError: CKEDITOR is not defined and this error has occurred before.
  10. I'm certainly not an expert but I understand that to mean that if I post (code) either as my question or as an answer, then that code is available for them to use freely. They can copy that code for any reason and make money with it or whatever.
  11. I already posted someplace on these forums that I recently switched to WebHostingHub.com, which I think is very good. Customer service is what counts the most.
  12. I think it's because when the first while reads the first line, the $fp (file pointer) is advanced to (point at) the second line.
  13. A better name for size would be DisplayLength. What this does is, my example of last name has a variable of length 40 chars. But I don't want my form field to be that long. So html form provides the size attribute by which I can specify that I only want 20 chars for display and entering. I could make it 10 or 30 or whatever. You can do this with CSS? The w3schools page is what Jonathon posted above and then there was a link for an example but that example does not use CSS.
  14. Hi Jonathon. I follow your thinking. And suggesting the tool bar is helpful. But I believe the question Marie is asking is about the number of characters, not the visual. And that is why I asked her to post her code, which she hasn't done as of yet. Seeing the code and knowing details of what she wants would give us the information we need, otherwise we are each talking about something different, it seems to me. Also, if you look at the example at w3schools, there is not CSS. I can't understand why they say you should use CSS in this case. And if they do believe that then where is the example? Either way, Marie should be able to figure out how to resolve this issue or else post more info.
  15. I wasn't able to edit my above post. Also, taking a look at their example (w3schools), it doesn't show any CSS even though they say it should be done that way. I really don't understand what CSS has to do with the number of characters.
  16. That's interesting. I didn't know CSS could size the form field like that and I haven't seen it done with CSS before. I thought html is specifying the number of characters, which doesn't seem to me to be a CSS function.
  17. Please notice this html code: <p><b>Last Name:</b> <input type="text" name="last_name" size="20" maxlength="40" value="<?php echo $ln; ?>" /></p> 20 is the size of the field the user sees and 40 is the size of the variable your code will accept. CSS has nothing to do with it. If you want to move things around on the form you don't need CSS for that either. If you want to move the form around probably then you would like to use CSS.
  18. I think you only need to change your html and if you post the code you are using someone will probably show you how to do it.
  19. I use this script I found on the internet. You might like to start with this. It's too long to post and not appropriate to post this copied code, I would suppose. You should be able to search for it. I only use it to detect windows from opera and firefox but I would think something similar would work for your others. Script Name: Simple 'if' PHP Browser detection Author: Harald Hope, Website: http://TechPatterns.com/ Script Source URI: http://TechPatterns.com/downloads/php_browser_detection.php Version 2.0.2 Copyright © 29 June 2007 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
  20. Larry is right Mr James. Do as he says first. Recently I had a 500 error and the only reason was my directory was password protected. When I updated the user/password it worked. Maybe there are other reasons to get a 500 error. After you can access your script and verify your url with PayPal then worry about what else might be wrong.
  21. I don't think you are even getting to your script. That is your problem. I think that 500 error might be because your directory is password protected, or a similar error to that.
  22. I think what you need is another table to do just the multiple links. Lets name it multis. Multis will have just two pieces of data. For example if you had Products and Categories. Each row will be an id for the Category and an id for the Product. As many rows of data as you need. This table links the other two tables with mulit-multi links.
  23. I think either at PayPal you defined the wrong url for your script or the ipn.php file is not sitting in the right place. What happens when you type in the sitename.com/ipn.php to your browser. It should show a blank page and you can also put in debugging such as send yourself email.
  24. I don't know if this is a possibility for you. Can you 'create' a test site 'under' the real website. That's what I do to test all my code before I go live. I use a subdirectory under my real site.
×
×
  • Create New...