Everything posted by stjohn
- a contact form question so basic, im embarrassed.
-
a contact form question so basic, im embarrassed.
As the title might suggest, I'm not so hot with PHP, and have decided to try use a PHP contact form on my brother in laws site, I can confirm this to be true. As it stands, the Form is posting, but only one variable seems to be sent correctly from the form to the PHP mailing code, so all I see in the test emails are: Name: Email Address: Phone Number: Subject: The subject is working... Message: The code was taken from a basic enough example on a website. Here is the form table: http://pastebin.com/FN5z1RAm And here is the 'send-email.php' http://pastebin.com/qkpip4Z5 As I said.. the 'subject' field is the only one that works, so I'd love to hear how dopey im being Thanks a lot guys.
-
positioning causing unwanted overflow.
thanks for the comments guys. i tried playing around with the <p> tags, but still seems to persist. even if i swap them for a <span>. I guess the only option is to backtrack and undo the relative positioning, although im not sure that will be possible either, due to space issues, and overlapping elements/png images..
-
positioning causing unwanted overflow.
Hi there, as the the titled says, I am using some relative positioning for some awkward div placement, but it has an effect on my overall page.. making it scroll a bit further than I would like. an example is at the bottom of the page here: http://www.georgianwines.ie/vineyards.php both the map and 'back to top' link are the likely causes of this, im sure, but is there anyway to limit the page scrolling size? thanks guys, any help is appreciated muchly!
-
Test if next 'page' is empty
ah really helpful thanks. I will have to back track a few steps then it seems, because as it is, I'm just jumping from id to id.. as per here (prev/next) http://www.georgianwines.ie/product.php?id=0 so im guessing i will have to scan the dB and insert everything into an array and call it from there??
-
Test if next 'page' is empty
im sorry i dont think you got what i meant. they are unique. but when they are being recalled they are in a certain order. my problem is in ordering them edit: or should i say my problem is in my ineptitude in programming php to order them
-
Test if next 'page' is empty
so i went through the database and arranged them sequentially, which all in all wasnt such hard task, its only tough when I i try to save entries of a certain ID to somewhere with the same ID...even if I change both at the same time. I should add that I do have an ordering / position id, I just havnt got around to working out how to work with all of that info effectively.
-
Test if next 'page' is empty
Hi all, as the title describes, my setup in the database is not exactly the best, and as a result I have to work around a few problems. at the moment I am recalling products using a 'product_id'. While i was inputting into the db, I was leaving gaps here and there between id ( 9 might jump to 11 and skip 10 for example) just so I could input an additional product if the client required. I know this isnt exactly good, or even ok practise, but I havnt gone through the whole ordering of db entries yet... So now that I am trying to insert a previous and next option, of course i return errors for the empty pages. So my question is is there a quick way to work with this? I was trying to test the id of the next page, to see if it was NULL, but i couldnt get it working. This was the code although if there is a more sensible way to achieve this I am all ears, bearing in mind that this is one of the last features to go in, and I dont want to rewrite alot of code, for now. : <?php $test_id= 0; $count = $product_id + 1; if ( $count < 150){ //only this many products $test_set = mysql_query("SELECT * FROM products WHERE id='" . $count. "'") //select everything from that db entry or die('Blah ' . mysql_error()); while($test_row = mysql_fetch_array($test_set)){ $test_id=$row['id']; } if( ($test_id == NULL)){ $count++; } else { $product_id = $count;} } ?> Many thanks.
-
tiny CSS alignment issue
thanks very much. that worked great. I actually tried playing around with that property, and i had a feeling it was something to do with all of that, but I just didnt understand exactly what I was supposed to be doing. Cheers for the great help. r
-
tiny CSS alignment issue
me again this one should be a piece of cake, but I cant seem to do it. usually I can handle most CSS issues, but because I am using some jQuery in this I cant seem to align some images correctly. here is hte online example: http://www.georgianwines.ie/product_list_2.php I would really like to align the < Red Wines > all on one line. I have tried different float setups as well as nested Divs, but to no avail. Any ideas guys n gals? Many thanks. r
-
Help with my Homepage!
you should have seen it before
-
Help with my Homepage!
good point, although i think in my case there was alot of unused/unusable space due to a constantly changing amount of content. if you see the product database, some products require a whole page, others just a few lines. i was trying to combat that with a side nav and some dynamic content loaders, but it was just confusing things. totally agree with the background and text, i tend to think everyone has a good graphics card and screen like me. im going to readdress that. thanks again.
-
Help with my Homepage!
cheers guys. this site has been a huge learning experience for me, as a 'graphics' guy. Typography has been promoted right to the top of important elements on a website. I had never really thought of it before starting this site. so ive played aound with the dead space a bit more, and kept the vertical motion in mind.. http://www.georgianwines.ie/ there may be a few inconsistencies, but hopefully its a bit more cohesive. thanks for the great comments.
-
Help with my Homepage!
ok!!! not what i was expecting but yea, super answer, thanks.! this is the first website where i actually worked on the typographical elements a bit. its amazing how much difference it can make. many thanks i was beginning to put some images in.. to 'fill space'. im gonna try that first though. cheers
-
Help with my Homepage!
Hi all, you may or may not have seen me post this website on here a few times, but it has been going on for a while now. it should be finished by the next day or 2, bbut a major drawback has been that the client has not supplied that much content. He is from eastern europe so I have done alot of the content editing etc from various websites (with permission). http://www.georgianwines.ie What I need is a few objective criticisms, primarly about the home page. As it stands it is very graphic-heavy so fitting stuff is quite a pain. My old homepage which i like, was something like : http://www.georgianwines.ie/index_other.php but he wanted something more rustic/georgian. I have a bunch of georgian vintage ornaments, but its hard to fit them in anywhere. does anybody have some thoughts/ideas/comments ebcause my brain is officially broken now, and i just want to put this one to bed. and then drink some georgian wine many thanks.
-
Menu's fixed to the top
thanks for the comments guys. so its not exactly a bad idea then.
-
Menu's fixed to the top
well this is the the problem. im actually stretching the background images out a bit as we speak because of space issues. some of the text is already cluttered (on product pages etc ) and I dont have any room to work with.
-
Menu's fixed to the top
or am I asking for trouble trying to do both a dropdown and fixed in one go?
-
Menu's fixed to the top
so what do you guys think about a fixed menu? or what is the standard thinking about them these days? im thinking about dumping my current menu for one. here is my current menu: http://www.georgianwines.ie moreover, id like to improve the dropdown function too. i suppose something like this: http://www.skialpine.com/ which is also fixed to the very top is a good representation of what Im after. Id like to hear your thoughts though. many thanks. r
-
Button only works 80% of the time
Hi again ok i guess its to be expected when using alot of jQuery, but i keep hitting a small snag here n there. this time i have a button that scrolls left or right in a gallery although it only functions about 80% of the time. reloading the page usually fixes this, but its not exactly ideal for users. i should add that there are some navigation-point buttons underneath that work 100% of the time, which would indicate that it might be a CSS issue, on my behalf. the original slider i am using is here: http://webdesignandsuch.com/fancymoves-jquery-product-slider-2/ and my version is up here: http://www.georgianwines.ie/product_list.php?id=1 - > you may have to refresh once or twice to see the button stalling. anyone with experience on this? would really help, thanks.
-
jQuery scrollable navigation
worked perfectly thanks
-
jQuery scrollable navigation
ok well it seems i have some conflicting javascript. im using a dropdownmenu script, and when i remove it from the page, it works. :-/ very strange. this bit: <script type="text/javascript"> ddsmoothmenu.init({ mainmenuid: "smoothmenu1", //menu DIV id orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v" classname: 'ddsmoothmenu', //class added to menu's outer DIV //customtheme: ["#1c5a80", "#18374a"], contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"] }) ddsmoothmenu.init({ mainmenuid: "smoothmenu2", //Menu DIV id orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v" classname: 'ddsmoothmenu-v', //class added to menu's outer DIV //customtheme: ["#804000", "#482400"], contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"] }) </script> But this basically allows the dropdownmenu to function or not, so removing it isnt the best of options. As im not really a coder, so im pretty stumped to say the least. Can anyone offer any help on this. Id be much appreciated. Thanks Alot. r
-
jQuery scrollable navigation
Hey all, Hopefully this isnt too much of a problem, but I'm struggling to fix it. I want to use this jquery navigation on a site im working on: http://flowplayer.org/tools/demos/scrollable/site-navigation.html and while I can get it work on a basic page, when I start to put it within divs ive already styled, it stops working. you can see examples here: working: http://www.georgianwines.ie/scroller.php not working: http://www.georgianwines.ie/grape_var_test.php so im pretty certain its my existing CSS stopping the animation from executing, but im a bit stumped. any ideas guys? much appreciated! cheers
-
using onclick="location.href=''
Hi there, I tried making a certain DIV into a link using onclick="location.href=". http://www.subland.de It has raised a few issues, 1st and foremost is it crashes FireFox 5 for some reason. If someone is on mac, id love to know how it is on Opera or Safari. 2nd, is that each link opens in the current window. I would love to set the target to a new tab if possible. Would anyone know how to achieve this? Thanks alot. r
-
doing the same thing twice.
i see.. i get what you are saying, but on the index page. the four products are being loaded in no problem, so im assiming while($row = mysql_fetch_array($result)) is working ok. but maybe this could be the issue on the product page. thanks