Jump to content

gazever

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by gazever

  1. No Joy, Ok I've split the elements up and put them you you can have a look at them, the form is at http://www.debbiesvillas.co.uk/form.php the enquiry sender is at http://www.debbiesvillas.co.uk/enquiry_sender.php enquiry sender code is <?php echo "<pre>"; echo "<hr />"; print_r($_POST); echo "</pre>"; ?>
  2. I have everything within a test folder at the moment, which I have set a password protect on to stop bots etc crawling my pages before it is ready to go live, I shall try moving the enquiry sender to the top level domain outside the protected area, thanks, this may be the issue
  3. Yeah that still posts to the correct page, up one level, If I try posting </> it still sends straight back to the main index page
  4. the script is running from root/account-area the enquiry_sender is in the root, hence the ../ and the form resides in account-area I have also installed php list on my website too, however when trying to use this to make html emails, it does exactly the same thing when the html is posted, so I am guessing it is some sort of configuration issue, is there an configuration setting somewhere that says when tags are posted, break, goto root index? I am using a shared hosting account, and don't really know anything about configuration setup etc.
  5. Why would you have them as subdomains, why not keep them as maindomain.com/users/userfolderhere then in the users folder, have the index page, which pulls user info from a db for images etc. depending on which user is being viewed, then if there's login area restriction access probably much easier to control I have created image upload scripts which make directories, for each category etc.
  6. Heres the form <div class="enquiry_form"> <h3>Send us an enquiry</h3> <form action="../enquiry_sender.php" method="post"/> <p>Please fill out your enquiry below</p> <textarea name="enquiry" rows="6" style='width:680px;'></textarea> <p><input type="Submit" value="Send Enquiry"/></p> </form> </div> <> post fine but </> refer me back to root index is there some sort of tags posting configuration somewhere?
  7. Quick question, I have some forms within my website, as always I test for validity of input, when testing certain stuff if I put in html tags, i.e. <h1>Heading Here</h1> and then post it, for some reason the post doesn't go to the script that should receive it, it just goes straight to my root index page, is this some sort of configuration setting, or does anyone know why this happens, Thanks Gaz
  8. Hi all, I am incorporating an shopping cart into my current website, I am using a payment merchant that will post back to a receiving page an XML with certain fields, the main one being, payment i.e. taken, declined. Where do I look for information on automatically receiving xml documents as a post, and how do i go about coding this, as I will not be viewing the script as it happening, it will be an automated process, should I experiment by reading an xml doc formatted the same as my request from the merchant. Does anyone know of any tutorials for this, Would appreciate it if someone could post some links Many Thanks Gaz
  9. I have done stuff similar, with updating live counts, most simple solution, is, get PHP to get the number out of sql and write a text file every time a change is made called for example number.txt. repeat this every time the number is updated by overwriting the text file text file content: number=42 // for example then have a swf open the text file, make it a variable every 20 or so frames, then simply have the movie display the variable on screen
  10. Works a treat thanks, Had to change this line of code though return ($tTime < time()); TO: return ($tTime > time());
  11. Hi I have a function which supposedly checks if its a valid date or not, Sorry guess I didn't make the original question very clear, What I'm trying to decide is if the date is in the past or not, i.e. yesterday, 3 weeks ago etc. here is my date checking function:
  12. Really simple question, someone is using my webpage to book villas, they are entering dates as date from, etc. my GET looks like this, availability_booking.php?villa=newvilla1&date_from=2007-12-14 however as input cannot be trusted, I get all villa codes out of sql and put in an array and then check the GET[villa] is inarray before checking the availability. after this I then check for booked dates, id there a simple way of checking to see if the date from day is in the future or not before checking the database, many Thanks
  13. Hi I know this will seem really simple, How do I validate a string for only characters a-z A-Z and 0-9, I have tried lots of different eregi, but cant get the syntax right, Thanks Gaz
  14. Is that really it, no workarounds? I have thought about apending a get to all links, but that just seems stupid, It is only for a site owner admin so he can update some text file etc, is htaccess an option can this protect a php script and only give acess to an area with a password?
  15. Hi, I have worked on a login system, but when I have uploaded to my host it doesnt work, after a bit of research I have realised that php safe mode is on, How do I get around this problem if I cannot hold session data. Please could someone point me in the right direction. Thanks
  16. wow knew there would be a simple solution, Thanks
  17. Ok, so after spending nearly all day on this problem, could someone please point me in the right direction. I am working on some scripts to format crossword clues etc. If I have a clue like the one below In which ocean was the Mary Celeste found abandoned and adrift? <8> I need to format this so there are a maximum of 18 characters per line, but not splitting any of the words, so I need to get it formatted like below In which ocean was the Mary Celeste found abandoned and adrift? <8> So only break it apart where there are spaces at the previous space before the 18th character, I need to put in a marker character where the line returns are put for part of my script further into it, so the completely formatted text will look like below, In which ocean was §the Mary Celeste §found abandoned §and adrift? <8> I need this script to work for all length clues which is why I'm getting in such a mess with it and going round in circles, Please help. Gaz
  18. Hi Thanks for the reply, I can create a script thorugh applescript to fix this problem, but when a lot of files are involved i'd rather like to create the correct file formats to start off with, anyone know any solutions or the cause?
  19. Hi I am creating some text files on a local machine, mac os x, using PHP and apache, however after manipulating the files, they are unreadable by certain applications, If i open these files in word for instance then save them as txt files, they then read fine, I believe it is something to do with ascii formats, has anyone come across this, or know of a solution I could experiment with, Hope this makes sense. Thanks Gazever
  20. @thorpe, yup worked a treat, thanks had to replace the brackets first as these interferred with the preg code i think, so changed them before then reverted them back. <?php ////// replace --->( and --->) to not mess up the pregreplace foreach ($newpuzzle as &$value) { $value = str_replace("(", "LEFTBRACKET", $value); $value = str_replace(")", "RIGHTBRACKET", $value); } ////// replace "(?,?) (?)" with "(?, ?)" foreach ($newpuzzle as &$value) { $old = '/(LEFTBRACKET)(.*)(,)(.*)(RIGHTBRACKET LEFTBRACKET)(.*)(RIGHTBRACKET)/'; $new = 'LEFTBRACKET${2}${3} ${4}RIGHTBRACKET'; $newvalue = preg_replace($old, $new, $value); $value = $newvalue; } ?> @svivian, Thanks but already sorted the solution from Thorpes suggestion.
  21. Hi Can anyone help, I have just spent about an hour googling str replace using wildcards to no joy. Can someone suggest how i would go about replacing: "(3,6) (9)" within a string to: "(3, 6)" however I need to use wildcards for the numbers as these could be "(2,4) (6)" for instance this searching goes thorugh an array containing crossword clues, so not every string will have these specifics, many will just have the number, i.e "(9)" Hope this makes sense! Many Thanks Gazever
×
×
  • 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.