
zaniac
Members-
Content Count
75 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Everything posted by zaniac
-
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
-
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
-
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 &a
-
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
-
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: 25
-
Cool, thanks for the advise.
-
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.
-
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.
-
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 disp
-
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:----------------------------------------------------------------
-
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;)
-
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.
-
Below is a calendar I have setup. Here I've used the 'for' loop with the $day variable and the 'foreach' loop with the $month/$year variables. I did originally have this setup as a simple function, but thought originally it was this that which could have been causing the problem.(calendar.php)---------------------------------------------------------------------------------------------------<form action="resultsform.php" method="post">$year = range (2007, 2010);$month = array ('January' => 'January', 'February' => 'February', 'March'=>'March', 'April' => 'April', 'May'=>'M
-
In a form does a <select> tag always have a value? Even if the <option value=""></option>?
-
Hi Teng84, thanks for the info you provided on having inputs checked. It gives me something to try out out in my next form.justsomeguy - With regards to the php line ......... $playershirterror = (isset($als) OR ($ianw) OR ($beto) OR ($rom) OR ($dper))+(!isset ($shirtnumb));........I write this realising I didn't use the 'if' statement. Anyway, I'm trying to make the line say "if either $als, $ianw, $beto, or $rom is selected and a $shirtnumb value has not been selected, then create the $playershirterror variable."I would then write an echo message saying something like...{echo'<p&g
-
I'm in the the processs of creating a dummy form. This one involves using <select> tags. I can create the form ok, but the problem for me is with the handling of <select> tag. Firstly, I can't seem to get my php handling form to recognise when a <select> tag has been selected by the user. Secondly, I need the form to ensure that an option within the <select> tag has been chosen, if a checkbox above it has been set.Below is an example of the HTML form....HTML Form-------------<h3>Select Player</h3><p><input type="checkbox" name="als"/> Alan Smith
-
Super, thanks mma_fighter123
-
Can Javascript work in a .php file?Just wondering as I'm very slowly learning php, but feel I need to learn javascript to enhance my practice webpage.Thanks for any thoughts you can give
-
Hi guys, yes I see the sense in the idea now, thanks
-
I tried to play about with PHP again, but not getting anywhere. Hmmmm
-
I read in a book that you can call files to help display your web page (e.g header or footer). Just wondered if such an idea is worth using for a website, as surely simple HTML/CSS can do this job outside of PHP scripts. Does anyone call files in PHP scripts for such display purposes? Also would calling a PHP script take longer to display than simple graphic files used through HTML/CSS?Thanks for any comments you guys can give
-
Hi guys thanks for your replies, sorry for the delay in replying.Ok I've tried something simliar to what teng84 suggested. I'm doing something wrong because when I tried each player in the list comes up with the following the following line " [ ] Goalkeeper [ ] Defender [ ] Midfielder [ ] Attacker", underneath their name.I did wonder if this was something for javascript. Howver I have not looked into learning that language yet. I decided to head straight for PHP, perhaps a mistake maybe.