Jump to content

ToonMariner

Members
  • Posts

    3,342
  • Joined

  • Last visited

Everything posted by ToonMariner

  1. put your page up and I'll see if I can help...
  2. the javascript (place in the head section of your html) replace the first &lt; with < - it thinks I'm trying to post code!!!!! [code] &lt;script language="JavaScript"> <!-- function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </script> [/code] the html... [code] <form name="form1"> <select name="redirector" onChange="MM_jumpMenu('parent',this,0)"> <option value=""></option> <option value="http://www.here.com">link1</option> <option value="http://www.there.com">link2</option> </select> </form> [/code]
  3. <?php= $result['X'] ?> to <?php echo $result['X']; ?>
  4. to use md5 encryption you simply need to use teh md5(); function. I have seen many scripts that process the data posted from a form and do md5 on recipet of the info - which for me completely defeats the object. Sure the string shoudl be encrypted client side (if js is on!) prior to being sent over the network......
  5. You need AJAX. [url=http://www.w3schools.com/ajax/default.asp]http://www.w3schools.com/ajax/default.asp[/url] after reading that it took me about 30 mins to bang some decent AJAX together. That is what you need my friend. just change the traget urls to the php scripts you wish to use.
  6. yep if that is your url just do this. <input type="text" name="textbox" value="<?php echo $_GET['textbox']; ?>"> <input type="text" name="textbox2" value="<?php echo $_GET['textbox2']; ?>">
  7. what he is trying to do is skin his site. To that end makeshift provided (IMO) the best option to follow. Just have multiple css files that you can switch between. If Bobleny needs any inspiration go and look at css zen garden
  8. Well - the way you have laid it out I can see lots of problems with your radio button values being detected properly - that is because they all have the same name; So each project listed will not have a unique name given to the inputs that relate to that project - I suggest that you append the project id to the name of their respective radio buttons OR anything that can discriminate between projects in yoru script...
  9. try $string = preg_replace('/(.*)(http(?! )*)(.)*/','\\1',$urinputstring); it may work it may not
  10. Sorry I totally see  where you are coming from now - I didn't look at the script just went for the jugular.... sowwie
  11. you need to set up actual e-mail acounts as opposed to just a user registartion... read this section of the manual [url=http://uk.php.net/manual/en/ref.imap.php]http://uk.php.net/manual/en/ref.imap.php[/url] and more specifically this page [url=http://uk.php.net/manual/en/function.imap-createmailbox.php]http://uk.php.net/manual/en/function.imap-createmailbox.php[/url]
  12. you need to read the imap section of the php manual matey.....
  13. the for loop requires you know how many variables you want to put in the array... and the while loop is the simplest most efficient loop in php. SO IMO the for loop is inferior in this case.
  14. $val = array(); while (YOUR CLAUSE) { $val[] = $x; }
  15. yeah i am saying that the browser your friend has is NOT setting this value! You already grabbed the host. Just have an array of url's that can access your admin area and if $_SERVER['HTTP_HOST'] is not in that array bump them.
  16. simple answer is no - its what ie does! if you can maybe use a link instead and set href to a js function that will detect the link and submit accordingly. Or use input type="image" and have an image that you have full control over (but not very flexible IMO)
  17. catid INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(cat_id), catid and cat_id - there's your problem
  18. Some browsers do NOT pass on HTTP_REFERER! see here [url=http://uk.php.net/manual/en/reserved.variables.php]http://uk.php.net/manual/en/reserved.variables.php[/url] you will have to look at another route to control access.
  19. check that the query will run independantly..... comment out the if statement that subits teh query and echo out the string you have generated to the screen, copy and paste it into phpmyadmin adn run the query - se what errors are returned and come back if you need more help.
  20. You can't call a serverside script once a file has been served in way you have attempted. The onWhatever event handlers provide a vehicle to initiate client side code i.e. javascript. you can however use ajax to let client side scripts call a serverside script to do the update for you. BUT in this case i see no reason why you cannot submit the script to the same page and let that do all the update.  just set action="<?php echo $_SERVER['PHP_SELF']; ?>" and an if statement to check that $_POST array has sufficient info in it to complete the request and formulate a query string on that info.
  21. why not simply create a string of all the recipients and use that in BCC: field of the headers - it should be very quick then you will only call mail once! there will still be a big load on the server BUT you could look for the tutorial on forking to see if that will help you.
  22. why store all that extra data when its not needed?
  23. I personally would have a separate table with just two fields team_id and event_id. then you can use an inner join to match up the events and the teams while keeping the database manageable.
  24. make sure you nest your statements properly.... BOTH the final else code blocks have no starting if block
×
×
  • 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.