Jump to content

willpower

Members
  • Posts

    296
  • Joined

  • Last visited

Everything posted by willpower

  1. pehaps you could share this for others to view.
  2. OK 2 issues here. 1) Tables are tables are tables! And they SHOULD be used for presenting tabular data such as this. 2) The HTML code for creating tables <table> shoudl NOT be included in your <? ?> These marks indicate the START and STOP of your php. You can mix HTML and PHP together as the <? allows the server to say...oh i need to treat this bit differently from the HTML. <table> <tr> <td> <? echo "this is my " . $name; ?> </td> </tr> </table> Not how the <? and ?> sourround ONLY the PHP and not any HTML
  3. sounds like a folder permissions issue. a) what are you trying to do on that line b)what chmod is your upload directory set to. the permissions will probably need to be set to 777 But bewarned this does present a significant security risk Will
  4. willpower

    Choices

    the same rule applys. you should have a name for your radio group. ie <input type="radio" name="radioGroup1" value="option1" /> <input type="radio" name="radioGroup1" value="option2" /> <input type="radio" name="radioGroup1" value="option3" /> PHP if (isset($selectvalue=$_POST['radioGroup1']) { echo $_POST['radioGroup1']; } else { //do that }
  5. willpower

    Choices

    Your html form will have an id/name value attached to the select...or at least it should have. <select name="mynameforthisselect"> Now to get the values you simpley use if (isset($selectvalue=$_POST['mynameforthisselect']) { //do this } else { //do that }
  6. I cant see how this would be done easily. You would have to work with each webmaster that was responsible for the website in question as the email would be generated on their servers. You'd have to have some identifiable var being passed and stored in sesion to the exit site, this would need to be parsed and understood by the contact form on the hotels website. As I say...to do that...you;d need all parties involved. If however you have the contact hotel link on your site....then its a doddle.
  7. its already in the script....did you put it there? if(is_uploaded_file($_FILES['uploadedfile']['tmp_name'])){ if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { chmod($filename, 0777); $uploadNotice = "The file ". basename
  8. Hi I have a page with a temp and weather conditions box on it. The data it contains is the returned data using a free webservice. When all is well....it is great. However I have noticed that this simple SOAP request (NuSoap Lib) and the resulting return, can, increase page download time to beyond ridiculous. I need to know if there is a way using this library to set a response time. This would enable me cancel the request if its too slow and fill the bax with an alternative. either that or.... How would I go about displaying the page anyway and have a loading image until the data arrives (AJAX sort of thing i'd imagine) Thanks Will
  9. lol...have you managed to echo your contents to screen? That will help you understand what issues the DB is having.
  10. YEs...you are on the right track here. 1. I generate a transaction id in the db first. 2. I generate the submission form and button. 3. I encrypt the trans_id 4. I include this in my return url ie /i_have_paid.php?trans_id=87Fgfg76dfhghGHHJG8sd 5. On return I query the DB and se if the Decrypted pass matches and if so process and if no fail. Hope that makes sense Will
  11. NO 1 Never publish your real username nd password to your DB... Yeah, Im guesing now, but I'd try and simply return these values to screen first. I think that the problem is probably being generated in your SQL statement and that it's failing to find any results. I'd certainly place a single ' before and after $school in the select statement also.
  12. Had a look at these. I am running 4.4.4 with no root access. Keep getting call to undefined...any other ways i can parse this? Will
  13. Hi I have used a webservice to obtain the follwoing XML response. <?xml version="1.0" encoding="utf-8" ?> <string xmlns="http://www.webserviceX.NET"><?xml version="1.0" encoding="utf-16"?> <CurrentWeather> <Location>Antalya, Turkey (LTAI) 36-42N 030-44E 57M</Location> <Time>Feb 26, 2007 - 06:20 AM EST / 2007.02.26 1120 UTC</Time> <Wind> from the SE (140 degrees) at 9 MPH (8 KT) (direction variable):0</Wind> <Visibility> greater than 7 mile(s):0</Visibility> <SkyConditions> partly cloudy</SkyConditions> <Temperature> 64 F (18 C)</Temperature> <DewPoint> 50 F (10 C)</DewPoint> <RelativeHumidity> 59%</RelativeHumidity> <Pressure> 29.85 in. Hg (1011 hPa)</Pressure> <Status>Success</Status> </CurrentWeather></string> Now thats a bit too much info for my liking...All I wanted was perhaps the <SkyConditions> the<Temperature> and maybe <time> When I have used other services I have had the response in an array, allowing me to return the key/value, but this comes as is. How can I catch the variables within tags of my choice and ignore the others? Hope you guys can help. Will
  14. willpower

    login

    you have anotther isse. The page is very wide. on a standard 1024 browser, you do not see the login box at the side.
  15. willpower

    login

    yes you need CSS. TB honest I notice your code using old <font> tags etc...but i am frigtened to start on this one....lol
  16. There is a great way to do this using mod_rewrites. It appears complicated at first but its weel woth the effort. 1.You construct your usrls, based on the information that you want in your queries. ie mysite.com/artist/album/track. 2. You construct the mod_rewrite to read the url and transfer it into good ol fashined url's ie mysite.com/find.php?artiste=this&album=&track=thenext 3. Then you build your SELECT Statement with this information 4. Bobs your uncle you have a user firendly, search engine friendly site with nice clean urls.
  17. feckin hell...i'm losing the plot here.... Whislt I take no responsibility for your lack of comrehesion...I do absorb all resposibility for my own pathetic fuck up. and I am sorry!!!! you need to replace all the /'s with \'s I don't know why but i put them ALL the wrong way around. School boy error. if($auth[displayname] == "") { echo "Welcome <font size=\"3\" face=\"Times\"> <b>Guest</b> please <a href=\"register.php\">Register</a>"; } else { echo "you are logged in as ".$auth[displayname]; } Try That...
  18. NO i never said ANYTHING about / meaning stop or ending a string with / show me your code that you have now. Really I am trying to help, but if you are not prepared to fully read my posts...there is little I can do.
  19. Right "You are logged in as" does not need because it is a start and a finish quote...LIKE I SAID MY PREVIOUS POSTS This error is generated by my sloppy coding. use echo "Welcome <font size=/"3/" face=/"Times/"> <b>Guest</b> please <a href=/"register.php/">Register</a>"; you really need to learn some of the basics here before trying to migrate to projects like this. The echo statement contains a $string ie a set of charachters to be output. These need to be contained within " my string " quotes. becasue you have used quotes WITHIN the string, PHP thisnks that you are trying to close that $string. This is why you MUST escape (/) any quote marks contained WHITIN the $string.....get it?
  20. <?php if($auth[displayname] == "") { echo "Welcome <font size=/"3/" face=/"Times/"> <b>Guest</b> please <a href=/"register.php/">Register</a>; } else { echo "you are logged in as ".$auth[displayname]; } php?>
  21. no i dont. that is not part of your echo statement... now is it?? Your echo statement begins with the word echo. read my last post more carefully...please.
×
×
  • 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.