Jump to content

Morris2

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Everything posted by Morris2

  1. Thanks for all your tips. None of them works right now. I discovered, that the dottet sqare appears around the button when I click the button, stays there, but disappears again when I click somewhere outside the button field. Maybe this is called something else than border? It is only like this in Internet Explorer, not in the other big browsers. It just don't look good, that's why I want to get rid of it. Thanks again and regards Morris
  2. Hi, and Merry Christmas by the way;-) I am using Joomla 1.7.3 with a nice extension "Art Table", and is using CSS-3 to get the right look. Internet Explorer 8 understands some of the CSS-3 codes, but not these two: .tablesorter tr:nth-child(even) td { background: #002933; } .tablesorter tr:nth-child(odd) td { background: #000333; } Any trick to make this work? How does these codes look like in "normal" CSS? The site looks great in most other browsers. Best regards Morris.
  3. Hi. I am trying to remove the dotted outline around selected radio button in IE8. In all other browsers this is not a problem. I have been trying this without luck: <input type="radio" name="amount" style="background-color: #EED8AE;outline:none;border:0;margin:0;padding:0; value="15"/> I would really like to fix this with inline CSS if possible. Whats wrong? Best regards Morris
  4. Thanks for this. OK, I have tried this in different ways, within php tags, within html tags, surrounded by ' ' or double " ". I can't make it work. In fact when trying to insert this line in my code document and save it (Joomla - Chronoforms - custom mode, the line is changed. In the example, I want the number 20 to be an interactive link. In fact I am trying to make a whole list of weblinks from a while loop interactive, and wanted to figure that out myself later. First I need to know, how to make the content of a variable an interactive hyperlink ... Best regards Morris
  5. Hi. How do I turn a variable into a hyperlink? Here is what I want to do. What is the correct notation? <?php $q=20; echo '<a href="www.phpfreaks.com">$q</a>'; ?> Best regards Morris
  6. Thanks for this. I just tried this, debugger says: unexpected T_STRING, expecting ',' or ';' in this line: echo'<select name="uan"onChange="javascript: window.location = full_web_url_to_this_page?uan='+this.value;">'; Can't see whats wrong here. Besides from that, did I undertand this right: full_web_url_to_this_page?uan Is it possible to do this without updating the page? Regards Morris
  7. Hello PHP world! I have this roll-down-select-menu working, reflecting a column in my database. I am able to retrieve the selected value after submit, that takes me to another code page. But I would like to use this value on the form page, that contains the roll-down-menu and the submit button. Is there a way to enter the chosen value into this variable $uan, without having to submit the page first? I tried to retrieve the value on this page with the POST lines at the button, but without luck. I think the value is only entered upon submit? Thanks in advance for your clever advice. Best regards Morris <?php $query = "SELECT * FROM Uniq_artist_name" ; $result = mysql_query($query); echo'<select name="uan">'; while($row = mysql_fetch_assoc( $result )) { echo '<option value="'.$row['uniqartistname'].'">'. $row['uniqartistname'] .'</option>'; } echo '</select>'; $uan = $_POST["uan"]; echo "$uan"; ?>
  8. This is exactly what I am looking for, thanks! I thought the solution would be simple, so I asked a simple question. Maybe it got too simple;-) Cheers Morris
  9. Hi there. How do I reflect the text content of the variable $a in this text form: <input type="text" name="artist"> Regards Morris
  10. Hello! How do I insert the content of two different variables into the SAME field in a table? Let's say, that variable A contains the word "blue" and variable B contains the word "sky". How do I "merge" these to variables into only one variable containing the words "Blue Sky"? Best regards Morris
  11. Hi. Maybe a tricky question? How do I reflect the content of a column from a database table in a roll down select menu in the browser? Let's say that the content of the table column is: Anna Michael These names should be reflected in this select menu like this: <select name="friends"> <option value="Choose a name">Choose a name</option> <option value="Anna">Anna</option> <option value="Michael">Michael</option> So visitors can choose a name, and thereby turn it into a variable, for reuse in the database. Best regards Morris
  12. Hello How do I fetch a current visitors ip address, and turn it into a variable? The visitor should only be able to enter the same form once, so I want to compare the current visitor ip address with ip addresses in the database to achieve this. Best regards Morris
  13. Hi. A quick one: How do I write this in PHP? if (this variable don't contain "@") echo "This is not a valid email address"; Regards Morris
  14. Hi. I changed the color of the submit button like this: <input type="submit" value="SEND"style="background-color: #CC6600"> Why can't I change the color inside a simple radio button the same way: <input type="radio" name="amount"style="background-color: #CC6600" value="50"> Looking for a simple no-css solution for now ... I am using Safari on Mac. Regards Morris
  15. OK. Now this is working as a stand-alone-script on my server, together with a stand-alone-css file: while($row = mysql_fetch_array($chart)) {echo $row['artist']."..." .$row['city']." " .$row['country']. " <span class='bigHitList'>".$row['total']." USD</span><br>";} GREAT! - thank you so much! Now I added this script to my Joomla 1.7 site, and here it shows right, but dosn't get styled. Where exactly should I insert the CSS file in the Joomla style sheet? Or where do I upload my own stylesheet? (I've tried the edit.css and the template.css files in my template folder without luck) Best regards Morris
  16. I tried it now, thanks. It dosn't work ... I have this code: while($row = mysql_fetch_assoc($chart)) {echo $row['artist']."..." .$row['city']." " .$row['country']." " "<span style='bigHitList'>".$row['total']." USD</span>"; I placed the below code in the css file: .bigHitList { font-size: 18px; color: yellow; } The browser writes: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' What am I doing wrong?
  17. Thanks! I will have to insert this line within the while loop, so all the totals and USD in this list will be styled. But where in my code do I insert this line??: echo "<span class='testCSS'>".$row['total']." USD</span>"; With or without the echo word? Will you show me? Thanks
  18. Hi. In the code below I want to style the variable total and the word USD from a customized stylesheet. I tried to make this work based on a previous answer, but i failed. I know now how to style a paragraph in HTML from CSS, but don't have a clue about how to style a variable. Best regards Morris. while($row = mysql_fetch_assoc($chart)) {echo $row['artist']."..." .$row['city']." " .$row['country']." " .$row['total']." USD<br>";}
  19. OK thanks. I've placed the following code in the CSS file in my Joomla template: bigHitList { font-size: 18px; color: yellow; } Exactly where should I insert the span-code-line in my own document below? I've tried to place it here and there, but with no results. echo '<span class="bigHitList">' . $row['total'] . ' USD</span><br>'; My own document: chart = mysql_query("SELECT * FROM Hitlist ORDER BY total DESC limit 5"); $num_rows = mysql_num_rows($chart); while($row = mysql_fetch_assoc($chart)) {echo $row['artist']." ... " .$row['city']." (" .$row['country'].") " .$row['total']." USD <br>";} Though it is not a PHP question, I have to figure out where in this PHP script I'll have to place this span-code-line. Best regards Morris
  20. Hi. I have a standard HTML multiform working. Inputs from here goes into a MySQL table, and is re-used in the website. I want all inputs saved in the database as capital letters, to get a more clean overview, both in the database and on the website. I would also like to know where to insert this new line of code (if any) The first form input field looks like this: <input type="text" name="artist"/> Best regards Morris
  21. Thanks. :-\ It is because I wanna keep the template in Joomla, but still style some objects differently. Where in my PHP script above should I place this line? Does this look right: echo '<span class="style="font-size: 18px">' . $row['total'] . ' USD</span><br>'; Morris
  22. Hi. How do I arrange, that only capital letters are written into my HTML form, no matter if the user uses capital letters or not? Regards Morris.
  23. Hi. I have this working PHP script. I want to inline CSS style the variable "total" and the free tekst "USD". I want both to appear in bold and golden. How do I do this? It seems to be a bit different to style within a PHP while loop, than in a normal HTML code. <?php $chart = mysql_query("SELECT * FROM Hitlist ORDER BY total DESC limit 5"); $num_rows = mysql_num_rows($chart); while($row = mysql_fetch_assoc($chart)) {echo $row['artist']." ... " .$row['city']." (" .$row['country'].") " .$row['total']." USD <br>";} ?> Regards Morris
  24. Thanks a million! Now it works. Incredible fast and helpful response:-) Best regards Morris
  25. Hi. Thanks for your very quick answer. The values inside are all correct and echo'ing out the right way trough the script. But I want to isolate the variable "artist" from the table, and echo it out in a separate line of code, something like this: echo $row['artist'] (you said this was correct?) But no matter how I try to change the code, it will not echo out. What is the right notation in this case? Best regards Morris
×
×
  • 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.