Jump to content

zaniac

Members
  • Content count

    75
  • Joined

  • Last visited

Community Reputation

0 Neutral

About zaniac

  • Rank
    Newbie
  1. Displaying $_GET integers values

    A big thank you amigo I cannot understand why I cannot do the small things in PHP. The other day I wasted half a day trying to figue out why the page would not display after hitting the submit button. I eventually realised my Apache server was offline
  2. Displaying $_GET integers values

    Hi,Have been trying to send a variable using a form, through the $_GET method. The variable is passed through, but does not display. Below is a copy of the code... Am I missing a function here? Any help, is very much appreciated
  3. Floating and keeping divs inline

    In fact I think I have got both to display inline now. However, their positions within the containing <div> differ in IE6 and Firefox. Firefox seems to display both #pp & #pd inline, but at a lower level within the <div>.Basically I used.... #box{ height: 350px; width: 924px; background-image:url(pppd.gif); clear: both; margin-top: 9px; float: right; }#pp{ height: 250px; width: 375px; margin: 20px 0px 0px 30px; float: right; }#pd{ height: 250px; width: 300px; margin: 20px 30px 0px 0px; float: right; } From the above, you can see that I have floated both divs #pp & #pd to the right. I have also had to float the container <div>(#box) to the right for the background to at least display in Firefox. I added clear: both also, so that the container <div> background would not display further up my HTML page - which I did not include in my original post's coding.
  4. Floating and keeping divs inline

    Ingolme - Thanks for your suggestion. I tried the display:inline and it worked fine. However I plan to remove the border property and when I do so, it displays out of balance again. Thanks for the suggestion though
  5. Floating and keeping divs inline

    Hi all!I'm trying to float 2 divs(#pp & #pd) beside each other in alignment. Both of which contain a <h3>, <p> and a <table>. I can get #pd move to the right using 'float: right'. However, in doing this #pp remains slightly higher up on the page than #pd.Below is the coding:(css) #pp{ height: 250px; width: 375px; margin-left: 30px; padding-top: 20px; border: 1px black solid; } #pp table{ width: 350px; cellpadding: 5px; cellspacing: 10px; text-align: center; } #pp td{ border: 1px solid #000000; background-color: #FFFFCC; }#pd{ height: 250px; float: right; width: 300px; margin-right: 30px; padding-top: 20px; border: 1px black solid; } #pd table{ width: 275px; cellpadding: 5px; cellspacing: 10px; text-align: center; }#pd td{ border: 1px solid #000000; background-color: #FFFFCC; } (HTML) <div id="box"> <div id="pd"> <h3>Payment Details</h3> <table> <tr> <td><h4>Method</h4></td><td><h4>Accepted/Preferred</h4></td> </tr> <tr> <td>Paypal</td><td>Preferred</td> </tr> <tr><td>Postal Order</td><td>Accepted</td> </tr> </table> <p>Payment for this auction is accepted by the above methods.</p> </div> <div id="pp"> <h3>Post & Packaging</h3> <table> <tr> <td><h4>Country</h4></td><td><h4>Delivery Option</h4></td><td><h4>Cost</h4></td> </tr> <tr> <td>UK/Ireland</td><td>1st Class</td><td>£</td> </tr> </table> <p>This auction is only available to the above countries.</p> </div> </div> I can't see why the float property doesn't flow the divs (inline) correctly in Firefox, like it does in IE6. Is there a way to get around this issue?Any help is greatly appreciated
  6. phishing site found in my web directory

    Cool, thanks for the advise.
  7. phishing site found in my web directory

    My website only consists of one page and that is a 'under construction' page. I have not modified it for a few months in any way. There are no forms either for my site, so I cannot understand how such a thing has happened.I have firefox as a web browser, but no add-ons installed.
  8. Hi,I thought I'd post this here, but was not 100% sure if this thread is really allowed.Basically I found an email from some security firm bdbrandprotect.com, in Canada telling me to remove a phishing site from my web directory. I use a host who has since removed the phishing scam from my directory. I'm no expert at security, but thought my host would be able to stop things like this, before it happens. Does anyone have any advice on how to prevent such rogues from uploading onto my web directories?Any help, is greatly appreciated.
  9. 2 issues with MySQL database

    I have a very primitive version of a database set up using PHP/MySQL. I have a made a simple table with the columns 'name', 'age', 'address' & 'email'. The 'address' column has more tha one variable which is posted to it via a form (for example $_POST['street'] and $_POST['country']). When displaying the table on screen the field in the 'address' column has all the variables inline and all joined up. I was hoping to have the column display each $_POST variable on a new line, so it could appear like below......Example 135 Halgar Field CourtDunstableEnglandand not like what it currently displaying below..........Example 235 Halgar Field CourtDunstableEnglandAlso I am having problems getting data to display in the database from <select> tags and checkbox options users have submitted through the form. ------------------------------------------------------------------------------------ So my 2 questions are:1) Is it possible to have more than 1 $post variable in a MySQL table column and have each of those variables displayed on a new line like in Example 2?&2) How do I get <select> and checkbox options in a submitted form to display on a MySQL database?If you can help, you'd be a golden star
  10. Hi Synook, thanks very much for the PHP tip, I'll give it a try. Many thanks
  11. Basically, I am playing with the idea of making a page which both displays the form and validates it (using PHP). When there is a validation error I want the page to re-display the form and retain the results(i.e 'Sticky Form'). I am able to retain the inputs entered into the text boxes from the users original submit, but I cannot get the <select> tag to retain the option value which the user has made on the orginal submit. Lol, I hope that I'm not confusing you. Below is an example of the XHTML I currently have on my form:-------------------------------------------------------------------------------------------Line 1 <p>Country<select name="country" value="<?php $_POST['country'] ?>" >2 <option value="" > Choose Country</option>3 <option value="England" > England</option>4 <option value="Scotland"> Scotland</option>5 <option value="Wales"> Wales</option>6 <option value="N.Ireland"> Northern Ireland</option>7 </select>8 </p>-------------------------------------------------------------------------------------------Now I could add the selected attribute inside one of the option values in the <select> tag. However, I think that after submition whichever option value has the selected attribute, this will be the option which is re-displayed no matter what the user has chosen. Currently in the validation process, when there is an error this <select> tag automatically is reset to the "" option value and only text areas inputs are retained. For the above reason I am not sure if the selected attriubute could work. But if you think that it should then I am willing to give it another try. Thanks for any further help or advice you (or anyone else) can give.
  12. I'm trying to create a sticky form, but am having problems with the <select> tags. When the user makes an error, the form is displayed again. When this occurs, I am able to retain the strings in the various text areas, but am unable to get the <select> option chosen by the user to be re-selected automatically (enabling the user not requiring to choose the same option again.I am aware of the <selected="selected">, but this only works for one single option value within the whole <select> tag.Any help on this is greatly appreciated. TY;)
  13. Hi guys, thanks once again for your help I took on board and tried on an akternative page your example and it now works fine. Gold stars for you guys
  14. I'm an idiot haha. Thanks for your help mma_fighter123 on this one, I have resolved the issue now. You were right, but I also made another error in a section I didn't think was relevent. Sorry for the time, but thanks again mate
  15. Hmmm, I've given it a try, but no joy.I made a slight adjustment to the calendar in the $month array and added ....(' '=>'Month', 'January' => 'January'.....).. and then added the following if statement into my resultsform.php page... if ($month == ' '){ $problem = TRUE; echo'<p>No Month has been entered.</p>'; }Having done this, I've found through testing, the $month result is not being sent.
×