Jump to content

lupld

Members
  • Posts

    99
  • Joined

  • Last visited

    Never

About lupld

  • Birthday 09/12/1990

Contact Methods

  • AIM
    arcnwlf
  • MSN
    lupld@hotmail.com
  • Yahoo
    arcanewulf

Profile Information

  • Gender
    Male
  • Location
    N/A

lupld's Achievements

Member

Member (2/5)

0

Reputation

  1. No problem, glad I could help. I'm especially glad it worked off the bat for you, usually I make a lot of mistakes before I get it right. And don't be too intimidated by javascript, it really isn't hard once you get used to it. A good javascript editor like adobe dreamweave goes a long way too. If you look around I'm sure there are some free alternatives.
  2. I would use phpMyAdmin... It's free and easy to use and has the ability to download databases as .sql or .zip files. It's easy to set up (gets easier with each version, but you should still probably find a guide) and is a full featured database tool.
  3. same here, I'm usually on aim, if you need some specific help let me know. if you're storing the images in mysql that's the one thing I haven't really dabbled with, so I don't exactly know how it works, but I think you can pick out what I've said so far and make it work. Good luck
  4. just out of curiosity, what kind of experience do you have with this sort of thing? you seem like you've been doing work like this before, but you're really stepping it up this time. if the javascript isn't working, submit() might be reserved. The example I found used submitform() instead. and it showed the syntax for onclick like this: onclick="submit()". Just a couple of errors I might have made, I only code for fun, so I do a lot of trial and error to get things right.
  5. lol, you're getting tricky now. put an input in the form with the photo they're viewing (like a hyperlink if it's just stored on the server), so that when they submit the form, the page reloading knows what image they were just viewing. and then use php to place the $_POST['previouspic'] into the img tag where you want the previous pic to display.
  6. cause I have nothing better to do right now, try this. <script type="text/javascript"> function submit() { document.forms["myform"].submit(); } </script> <form id="myform" method="post" action="action.php"> and your radio buttons in the form will look like this <input type="radio" onclick="submit();" value="7" name="picrating" /> basically, add onclick="submit();" to your radio buttons, add id="myform" to the form tag (you can change myform, just make sure you change it EVERYWHERE it occurrs), and copy that javascript into your header. I don't think you need a submit button either, as the javascript seems to cover for it, if it doesn't work try putting in a submit button and adding style="display:none;" to it so it doesn't appear on the page. You may be shy about using javascript, but it posts the data the same way as if the user clicked a submit button, and it plays well in php. No, there isn't really a php thing you can do for this, as php is a server side language, and javascript is a client side language. I've narrowed the javascript down as easy as I think I can for you. Good luck.
  7. if you really need me to I can look up the specific javascript, let me know... noone ever helps me on here, so I should at least try and fill in the gaps.
  8. the only way I know is to use javascript to submit the form, which isn't too hard to do, search around in google. each radiobutton will have something like onclick="submit();" and then you will have a javascript function like function submit() { this line of code would submit your specified form with the data as entered } making it post the form, and then obviously you just put method="post" in the form tag to make it post instead of get.
  9. This is probably terribly coded, but it works. Use index.php?durl=yahoo.com or google.com or something to load the page the first time. Then after that the form works fine for both. Here is the final PHP <?php //if(isset($_POST['Submit'])) // { $dlin = $_POST['dlin']; // }else{ // $dlin = "http://www.google.com"; // } if(isset($_GET['durl'])){ $url2 = $_GET['durl']; if(stristr($url2,"http://")){ }else{ $url2 = "http://".$url2; } }else{ if(stristr($dlin,"http://")){ }else{ $dlin = "http://".$dlin; } } ?> And the places the link needs to be included now look like this... <?php PRINT "$dlin"; PRINT "$url2"; ?> and cause I'm a nice guy, and I like this little project, here, have the newly finished index.php [attachment deleted by admin]
  10. No luck, works like it should in Firefox, selects the url value for when submit is not set for IE8.
  11. I'm wondering if maybe the url for "name" is reserved in IE8, as part of a security feature. I'm gonna rename the input values.
  12. Ok, doing a satire project where I'm mocking an IE8 opening a url and it being blocked to do government zealotry. I have it all about done, but I want to make two versions, an internet emulator, and the redirect one I just mentioned. It works in firefox, but in IE8 it acts as if the submit button wasn't pressed when it loads the page. I think it's an error with how I handled the form, or the $_POST in php. Anyone know why this works in Firefox exactly how it should and not at all in IE8? I thought php handling was browser independant, it should grab the $_POST, put the links in how it should, and load the "fake browser". Here are all the files, this is just a school project, and I don't care who rips off the code, I think it's a neat little project. Here is the code just in case someone is curious and doesn't wanna download the source files.. <?php if(isset($_POST['Submit'])) { $url = $_POST['URL']; }else{ $url = "http://www.google.com"; } if(stristr($url,"http://")){ }else{ $url = "http://".$url; } ?> <html> <div id="IE-LOGIN"><form method="post" action="index.php"> <input id="IE-LOGIN-INPUT" type="text" name="URL" value="<?php PRINT "$url"; ?>" /> <input type="submit" value="Submit" name="Submit" style="display:none;" /> </form> </div> </html> On a side note, could this be IE8's anti-phishing software? I just need it to work for a school project, if I have to use Firefox in the end, I suppose I will, but it will be easier not to install a new browser just to turn in the project. [attachment deleted by admin]
  13. I have a FRESH install of apache 2.2.x installed on Ubuntu 9.04 using apt-get and I'm using webmin to administrate it. If I edit the ports.conf file to change the listening port and restart the server, it STILL refuses to use the new port. I have even tried to put "Listen 4048" in http.conf and comment out the lines in ports.conf and it still will not use the new port when restarted. Ports.conf looks like this NameVirtualHost *:4048 Listen 4048 and then I put ports.conf: #NameVirtualHost *:4048 #Listen 4048 and http.conf Listen 4048 and it wouldn't work, any ideas? the computer is set to IPPASSTHROUGH on the router, so it should get ALL traffic that's not forwarded to another computer, and 80 is ISP blocked. Thanks in advance. Nobody seems to have this issue, but this is my 3rd time trying to fix it.
  14. Thanks, I'll remember that, I tried installing openssl-devel. That's the only thing I could find doing a google search, guess it must be an outdated method.
  15. don't know which one, but installed a ton of libapache libraries, and finally got pure-ftpd to compile. Also found that pure-ftpd-mysql was conveniently in synaptics package manager. Thanks anyone who may have helped.
×
×
  • 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.