
DeX
Members-
Posts
258 -
Joined
-
Last visited
Everything posted by DeX
-
THANKYOU PHPFREAKS! Received 1st Place in Canada!!!!
DeX replied to phpSensei's topic in Miscellaneous
That's crazy, good job. How did you do it? Which language? Which architecture? Did you use web services? Beans? Any API? Tell me everything! -
You just want to send an email right? http://php.net/manual/en/function.mail.php bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] ) This will work as long as your host has a working SMTP server set up. For example: mail("[email protected]", "Need PHP mail help!", "Hi, can you please help me with PHP?"); When this runs it will send an email. Format the message with the values from the form and presto. Done.
-
PHP has a mail function, use that.
-
Need someone who can help me calculate the price of a job.
DeX replied to Jumpy09's topic in Miscellaneous
Because the pages are implemented in the database and then populated depending on the ?page= string. This was done so that he could access the admin area and alter pages, but due to the size of the image on owners.. I couldn't get the image to work right with the system that uses a 4:3 Aspect Ratio on images. That was done to make the images look more professionally inserted, instead of having the images come up to different sizes and looking weird. I could have done it better, but since the client doesn't know anything about html or knows how to work FTP.. I did the site in the best way possible to allow him to add pages, remove pages, edit pages, and such. Which would be a bit difficult to do if the pages were loaded via their own .php file. I am not very good at coding the htaccess file so I don't know how to make a www.site.com/page url to be www.site.com/index.php?page=page when working with it in php. If I could figure that out, then I could at least make the pages appear to be different. So why not use Wordpress? It would have been much easier for you and give him a much better admin area for adding pages. -
This is raifly easy if you don't want to follow any sort of proper MVC methods. Set up a form for input on your page with some input text boxes and checkboxes: <form action = "new-page.php" method = "post"> <input type = "text" name = "input1" /> <input type = "text name = "input2" /> <input type = "checkbox" name = "checkbox1" value = "false" /> </form> And in your new-page.php you can get the values that are passed like so: <?php $input1Value = $_POST['input1']; $input2Value = $_POST['input2']; $checkboxValue = $_POST['checkbox1']; ?> Then put them into the database. Send me some money and I'll code it for you.
-
Need someone who can help me calculate the price of a job.
DeX replied to Jumpy09's topic in Miscellaneous
I'd charge $2000 - $2500 for that here in Canada, including the lightbox. Why do you have all the pages loading from index.php instead of their own separate PHP page? Actually why is the owners.php page the only one that is separate? -
I'm working on another JSP project where I was shown the brilliance of web services, beans and struts to manage form entry, persistence and validation. I think this is very efficient for taking customer input from a web page, can this same idea be done in another web based language such as PHP? Or for something like this should I convert over to Java/JSP?
-
Ya, exactly. The main thing you're going to want to know is that the <% %> symbols are going to be replaced with <?php ?>.
-
I have everything set up to share a contest with a friend by clicking a button and inputting your friend's email address but I can't seem to get the body of that email to contain the HTML web content I want. Basically I have it set up right now that the body of the email just contains some simple HTML code but I would like it to embed the content from another html file that I have on the server so it essentially displays that HTML webpage inside the email and the recipient can click the links. It's easy enough to manually create the email but if I'm doing it with JSP, how can I pull in that external HTML file from the server to include in the body?
-
The div idea worked.
-
Well then, it's a good thing I'm the boss! Another reason to tell my clients not to use that dinosaur of a browser.
-
I found a bunch of samples on this site - http://forums.pinstack.com/f214/html5_animation_examples-118598/ It looks like I can use HTML5 and CSS3 to achieve exactly what I want without any Flash/javascript at all.
-
I have an image of a map of the city and I'm trying to incorporate a train going down the tracks and stopping at designated stops on the same timeline as the city transit. What's the best way to incorporate this animation? Can it be coded directly into the HTML5? Should I have an animator create a video file and have that portion of the image be an embedded video? Should I create a .gif and have that portion of the image be an embedded gif? What's best? It's only a portion of the city map with only 1 or 2 stops and the train will enter from the top of the image and exit the bottom, it doesn't need to go all around. Thanks.
-
This worked great, thanks!
-
I'm using a lightbox which currently only blacks out the visible portion of the screen. The problem is if you scroll down while the lightbox is showing, the portion you're scrolling down to isn't under the lightbox. How do I have the lightbox cover the entire page top to bottom? <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>LIGHTBOX EXAMPLE</title> <style> .black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .white_content { display: none; position: absolute; top: 25%; left: 25%; width: 50%; height: 50%; padding: 16px; border: 16px solid orange; background-color: white; z-index:1002; overflow: auto; } </style> </head> <body> <p>This is the main content. To display a lightbox click <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">here</a></p> <div id="light" class="white_content">This is the lightbox content. <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Close</a></div> <div id="fade" class="black_overlay"></div> <div style = "height: 2000px;">Very large div</div> </body> </html>
-
Nice one, I'll try the div and let you know, it'll be a day or two before I get back to that project. But yes, I would like a scroll bar to appear in the browser if it's narrower than the 2 images.
-
I want them to stay side by side even when the browser window is resized. Currently if the browser is not as wide as both images, it'll move one below the other. I want them to stay side by side no matter what. Is it possible without a table?