- 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.