Top.Mail.Ru
? ?
PHP Development's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Tuesday, October 4th, 2005

Time Event
10:43a
PHP and Forms
I'm after a bit of help with a complex form i have on my site. I am aware that this may actually be a Javascript issue, but i'm only "advanced beginner" in PHP, so i'm not too sure. hopefully if i explain my goal, someone can pooint me in the right direction, or offer up some code :)

I have a form that has a row of drop-down menus, that when each one is selected and filled out, the variables should all amke up one long instruction. For example the first box might be numbers 1 to 10, the second box might be a list of fruit. by selecting the number (say 3) and then the fruit (say apples) '$var1 $var2' would eaqual '3 apples'. So, what i would like to happen is when a submit button is pressed, '$var1 $var2' is written to a textarea underneath the form, and '3 apples' would be shown in the textarea. But it doesn't end there! I'd also like the user to then be able to select another '$var1 $var2' combination, and upon submit have it add that underneath the first one in the textarea.

And as a final piece, pressing a second submit button underneath the textarea will pass the texarea variable onto the next page of the form (which i plan to store in a hidden var). I can kind of figure out this final part, but it all depends onhow the other stuff is done i guess.

I'm really hoping it isn't javascript, or at least not too much, heh. Any help or pointers? :)

please, and thanks! :)
paul.
12:09p
fake 404 error redirection.
ok, so maybe I have this thought out incorrectly, so I am looking for some advice.

In my apache config we have

ErrorDocument 404 /path/to/file.php

so that anything that receives a 404 response should get redirected...

I have a script..

<?php
header("HTTP/1.1 404 Not Found");
?>

This sends a 404 message. I would expect it to redirect to the ErrorDocument, but it doesn't Is this what is suppose to happen? or am I missing a piece to the puzzle?
10:25p
PHP Programmers Needed
Hello everyone!

Please bare with me because I'm completely new at asking for help, or requesting interest.

I work for a new coming of age petsite called "Teripets" and although we do have our own programmers, we are currently seeking new programmers to help us get things up and running.

I realize that many of you have "real" jobs, but this site means a lot to those that use it on a day to day basis. We are here to make sure people have fun and enjoy the things we have to offer. The site is mainly run by volunteering since we are still using advertisements to pay for our host -- so unfortunately to anyone that wishes to help us out, this will be a volunteer job. We are hoping to change this in the future.

If anyone is interested, you may contact me directly (sunlicked@msn.com) or please contact the site's owner at Chris@teripets.com


Thank you so much for your time

--Melissa

<< Previous Day 2005/10/04
[Calendar]
Next Day >>
About LiveJournal.com
Image