Jump to content

White_Lily

Members
  • Posts

    531
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by White_Lily

  1. Try putting the width and height figures in double quotes.
  2. Are you planning on having more than 3 images? If so I think you may want to re-think your code.
  3. Can i just ask you to post all the code for this page? thanks.
  4. Okay i downloaded your file and i went through it, can you try it and see if anything changes? <script type="text/javascript"> function GetLocation(str) { // var data = document.getElementById("sector").value; //alert(str); // var locid = document.getElementById('SearchLocation').value; if (str == "All"){ alert("Please select a Role Type"); document.getElementById("sector").focus(); document.getElementById("sector").select(); return false //location.reload(true); } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) {//alert(innerHTML=xmlhttp.responseText); document.getElementById("location").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","http://<?php echo $_SERVER[HTTP_HOST]; ?>/dev/getLoc.php?loc="+str,true); xmlhttp.send(); } </script> <?php //get the database configuration settings $conf =& JFactory::getConfig(); $dbhost = $conf->getValue('config.host'); $dbuser = $conf->getValue('config.user'); $dbpassword = $conf->getValue('config.password'); $dbname = $conf->getValue('config.db'); $dbprefix = $conf->getValue('config.dbprefix'); // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); // Check for any error message from our helper if ($msg != '') { echo "<p>".$msg."</p>\n"; } // display the list of sectors retrieved by our helper ?> <p><?=$intro_para?></p> <form method="post" action="index.php" name="searchForm"> <p> <input type="hidden" name="option" value="com_recruitmentmanager" /> <input type="hidden" name="task" value="search" /> <input type="hidden" name="Itemid" value="<?=$Itemid?>" /> <select name="sector" id="sector" onchange="GetLocation(this.value);" style='font-size: <?=$text_size?>;'> <option value="All" >Role Type</option> <?php for ($n=0; $n<count($sectors); $n++) { echo "<option value='".$sectors[$n]['id']."'>".$sectors[$n]['desc']."</option>\n"; } // eof for loop ?> </select> <br /> <span id="location"> <select name="area" style='font-size: <?=$text_size?>;'> <option value="">Location</option> <?php for ($n=0;$n<count($areas);$n++) { if ($show_country) { if ($areas[$n]['County'] != '') { echo "<option value='".$areas[$n]['id']."'>".$areas[$n]['Country'].', '.$areas[$n]['County']."</option>\n"; } else { echo "<option value='".$areas[$n]['id']."'>".$areas[$n]['Country']."</option>\n"; } } else { if ($areas[$n]['County'] != '') { echo "<option value='".$areas[$n]['id']."'>".$areas[$n]['County'] . "</option>\n"; } else { echo "<option value='".$areas[$n]['id']."'>".$areas[$n]['Country'] . "</option>\n"; } } } // eof for loop ?> </select> </span> <br /> <select name="salary"> <option value="All" selected="<?php if ($salary=='All') { echo 'selected'; } ?>" >Salary</option> <?php // get list of rate bands $query="SELECT * FROM ".$dbprefix."RAM_RateBands ORDER BY `display_order`, `desc` asc"; $sth=mysql_query($query); $num_rows = mysql_num_rows($sth); // records found? if ($num_rows > 0) { while ($row = mysql_fetch_array($sth)) { $bid = $row['id']; $desc = $row['desc']; $selind = ''; if ($salary == $bid) { $selind = 'selected'; } echo "<option value='$bid' $selind >".$desc."</option>"; } // eof while loop } // eof check for records found ?> </select> <br /> <select name="contract"> <option value="">Contract Type</option> <option value="1">Permenant</option> <option value="3">Contract</option> </select> <br /> or<br /> <b><?php echo JText::_('RAM_ASSM_SEARCHFOR'); ?>:</b> <input type="text" name="searchfor" size="16" value="" /> <br /><br /> <div style="text-align:right"> <input type="image" src="/img/search.png" name="search" value="Search" class="btn" style="border:0" /> </div> </p> </form>
  5. First off: with the code snippet you provided, spell "value" correctly. I will look at your code and post again later.
  6. Good luck with the Lightbox problem itself, sorry I couldn't help with that bit PS: Theres absolutely no security on that form or processing script, so if needed - add some
  7. Here you go then: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> </head> <body> <?php /* MAKE THIS LOOK PRETTY TO! */ $sub = $_POST["submit"]; $name = $_POST["name"]; $phone = $_POST["phone"]; $company = $_POST["company"]; $gender = $_POST["gender"]; if($sub){ if(!empty($name)){ if(!empty($phone)){ if(!empty($company)){ if($gender){ echo '<p>Name: '.$name.'</p>'; echo '<p>Phone: '.$phone.'</p>'; echo '<p>Company: '.$company.'</p>'; echo '<p>Gender: '.$gender.'</p>'; echo '<form action="" method="POST">'; echo '<input type="submit" name="con_submit" value="Confirm" />'; echo '<a href="">Wrong</a>'; echo '</form>'; } }else{ $msg .= "No company: "; $link .= '<a href="">Try Again</a>'; } }else{ $msg .= "No telephone number: "; $link .= '<a href="">Try Again</a>'; } }else{ $msg .= "No name: "; $link .= '<a href="">Try Again</a>'; } echo $msg; echo $link; }else{ ?> <form action="" method="POST"> <label>Name:</label> <input type="text" name="name" /><br> <label>Telephone:</label> <input type="text" name="phone" /><br> <label>Company:</label> <input type="text" name="company" /><br> <label>Gender:</label> <select name="gender"> <option>Male</option> <option>Female</option> </select><br> <input type="submit" name="submit" value="Submit" /> </form> <?php } ?> </body> </html>
  8. Okay - I wrote this very quickly but: http://www.janedealsart.co.uk/testing_form.php Is this what your looking for?
  9. I will try some things and will post back later today
  10. ive never tried displaying the information in a lightbox - however my 'guess' is that you would have to get the form to submit to itself and use post to display the information inside the lightbox. I cant really give you coding because ive never tried using a lightbox for this reason before.
  11. by real business email, im guessing they mean "name@businessname.com" and why would you even want to restrict gmail? people have gmail accounts for their analytics and things, so companies probably finding it easier using that address rather than creating a whole brand new one.
  12. Try finding a lightbox that allows almost anything to be displayed in it. (images, videos, text, etc). It should then be just a case of displaying the data as you usually would.
  13. Have you tried spelling "Staatus" (Status) correctly?
  14. Hi Fox, I have a basic CMS system set up, there is just a few little things to change. Once the changes are made and i have created a basic website template - and all this is live, i will post the link for you - sorry for it taking so long
  15. It is possible, you would use a select query, you would fetch the data from the specified table with mysql_fetch_assoc() in a while loop, within that while loop you want to echo out all the information either in a table or an awkward structure of divs. If you want an example, say so.
  16. Shes asking if the errors can be processed through a forech() statement
  17. Because im only posting here if something ive written doesnt work - therefore i care about fixing it... (ive said this so many times now that clearly you lot arent listening either) I only wanted to know why the script was skipping a check and how i can fix it, then i get all this crap because of the way i do things >_> No one is the same so just give over >_< Plus if i didnt appreciate the help then i wouldnt of posted here in the first place.
  18. I only care if it doesn't display whats its supposed to display, or it doesn't display at all. Thats the only time i care.
  19. I don't remember saying its 'the right way' to do it if it works the way I do things O.o All I said is that if my way works, then I leave it alone - Nothing about it being 'the right way'.
  20. As I said, if my code doesn't work (which it didn't otherwise I wouldn't of posted this topic in the first place) then I change it. So I changed it to something that does work (which is your re-written code with the mysql_fetch_assoc() line where its needed). and it works fine now. No need to get in a huff about it. I'm interested in learning code otherwise I wouldn't have a job as a web developer. I just don't see why I should change something that works.
  21. Since ive been coding PHP. Which is probably... 2-3 years... i think
  22. BTW - Your re-written code would return an error since the $get variable for $get["user_level"] doesnt exist without $get = mysql_fetch_assoc($getLogin);
  23. The way I work is this: Write the code in the easiest way for me, If it works, leave it alone. If it does NOT work, change it.
×
×
  • 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.