-
Posts
827 -
Joined
-
Last visited
-
Days Won
9
Everything posted by fastsol
-
I would start by turning on error_reporting in the php.ini file so that you can see the errors the page is throwing.
-
You will need to clarify much more than that to understand what you are trying to achieve. Are you having issues with a specific code? Provide your current code so we can take a look.
-
Get rid of the ../ for the lang include. The requires/included run from the point the file is including them. So when you include the header it's NOW running from the root, so your include in the header would run from root also.
-
You need to put the validation php on the same page as the form if you want it to work. Put the validation at the top of the page before the form. The only other way would be to set the error messages into the session and echo them on the form page if they exist.
-
Check out this tutorial I have http://amecms.com/article/Building-Chained-Select-Boxes-with-Jquery-and-PHP
-
How are you getting the data for the rows? From a database? You may be able to use the GROUP BY clause. We will need some more precise info from you to help further. Also you really need to use css to format the table rather than the horrible repeated inline styling you have now.
-
Umm, you don't even have any images or anchor tags in the code you posted. Also please use the forums code tags to post code. Please explain better as to what you are doing cause it didn't really make much sense.
-
Oh the dreaded Gmail, yeah their spam filter system is difficult to deal with. Many many people have issues with them and even if you do all the known tricks it still doesn't work many times.
-
This also has nothing to do with the issue of not getting the emails. Either the email is getting marked as spam when it leaves the server or because there isn't proper header info the receiving email client is marking it as spam. Have you checked your spam box? One thing you could do to verify the mail function isn't failing is this if(mail($to, $subject, $body)){ echo "Thank you, we will get back to you shortly"; } else { echo 'mail not sent'; }
-
Here are a couple links to help you This has nothing to do with it. The id is only used for the html and css aspects, php doesn't do anything with it.
-
Emails can be a little tricky at times to make work consistently. Start by googling about php email headers, that will help your delivery issue some. Using phpmailer will also help alot cause it's a php class just for emailing things. It provides all the correct headers and stuff to help with delivery.
-
Quick glance, yes.
-
How to Upload Multiple Images from HTML from to FIles?
fastsol replied to tahakirmani's topic in PHP Coding Help
Check this tutorial out http://www.youtube.com/playlist?list=PL7413DDD1EB6A14BD -
What exactly isn't working? I assume it gives you the Error! instead of sending the email? You need to give the submit button a name="submit" in order for your php to work. I also distribute a ready to go contact form http://amecms.com/article/Easy-to-use-contact-form-with-validation
-
http://php.net/manual/en/function.ctype-alnum.php
-
Here is some info about a possible way to do this with only css. Really it would be best to use javascript or test for the empty content server side and not display the li at all. http://stackoverflow.com/questions/6414643/hide-border-if-there-is-no-content
-
Warning: Invalid argument supplied for foreach()
fastsol replied to freak4's topic in PHP Coding Help
It's saying that $fields is not an array when it gets to the foreach loop. -
Pass the first form as $_GET so the department will be in the url. Then when you post the second form leave the action tag empty and it will post back to the same department cause the url will still hold the department info.
-
Creating a varied number of dropdown lists dynamically
fastsol replied to cbassett03's topic in HTML Help
First, why wouldn't you want to use a library like jquery for stuff like this? It makes life so much easier to achieve this kind of thing with way less coding on your part. Second, to clear the previous boxes, you need to check when a earlier box is changed and then clear the others, again jquery makes this easy. If you want to PM me I have a car make, model, year api that I distribute and it does the functionality you are asking about, so you could take a look at that code to help you. -
Here is a tutorial on the swear word filter, it's a 2 part so make sure to watch the 2 video. http://www.youtube.com/watch?v=5y1HyQLg2dU&list=PLFA954987101252EF&index=11
-
Execute PHP without leaving page (Contact form)
fastsol replied to rec0il's topic in PHP Coding Help
The page needs to be fully loaded before the link will work. I did just change one thing to help avoid this issue in the future. -
Execute PHP without leaving page (Contact form)
fastsol replied to rec0il's topic in PHP Coding Help
I distribute a fully loaded and functional contact form that submits using ajax with confirmation messages here http://amecms.com/article/Easy-to-use-contact-form-with-validation -
You say you tried POST but are you sure you did it right? Cause in your current code you have method="_GET" And it should be method="get" OR method="post" There isn't supposed to be a _ in the method name.
-
php says variable has value A, uses value B
fastsol replied to karmatiger's topic in PHP Coding Help
If you use firefox or chrome browsers you can use firebug in firefox to see what css rules are being applied to a specific element in the browser. Most likely you have a different css rule that is overriding it.