Jump to content

Hard PHP Question, using pasted data on other pages


Rifts

Recommended Posts

Hey guys I'm pretty new to php and still learning a lot. I'm going to try and explain this best I can so I hope it makes sense.

 

I have a list of events and under each event there is a button that says click here to volunteer.

 

that will take you to a volunteer form. in the volunteer form there is a textarea for comments

 

now what im trying to do is this:  when you click on the volunteer button it will bring you to the form and depending on which event you want to volunteer for it will have the name of the event you click already filled in the comment area.

 

I have all the events stored in my database.

 

thanks for the help

 

 

Follow this thread: http://www.phpfreaks.com/forums/index.php/topic,304134.0.html , I think the multiple button method would work for you too.

 

Look here too for good resource.

http://w3schools.com/php/php_post.asp

Let us know after you've played around if and where you are stuck at. Other there are many ways to do this. It's not as hard as you think either, too general and without code can only just point u in a general direction of how-to. Again let us know when u run into an issue.

Again let us know when u run into an issue.

 

I agree with your entire statement except for that last sentence.  Makes it seem like you expect him to run into an issue, which he may but he may not.  To me that sentence makes it seem you think he is stupid ;)

 

there are some simple ways of getting this thing done.

 

In the button code you can have the URL somewhat like "index.php?event=KissingBooth" or something along those lines..  then in the comment box you wish to have that information you would do a simple echo on $_REQUEST['event']; and that should achieve what you are looking for ;)

Again let us know when u run into an issue.

To me that sentence makes it seem you think he is stupid ;)

Oh come on...sure make me a bad guy... ha. You know that's not what I meant. Attempting to learn php and being new to it... I just assume he'll need some help if not on this then on something else he's not familiar with. Hell I need help all the time and I'm not new to php.  I gave him some very generalized info was all so... I expect follow up questions since I really didn't want to be a jerk and just say here read this. Hmmm so avoiding being an ass made me one? Irony not lost on that is it oh well.

I hear you there man -- I come across weird things that I need to get done but have no clue how to get it done pretty much every day.  like right now -- i need to have the ability to upload 8 images through PHP, but it needs to do it through a single input box, needs to update a div to have the info it's uploaded, and needs to do it onchange of the input box, but then when the submit button is pressed it needs to call an ajax post to send the rest of the form data to PHP to update into the database..  heh heh heh.  oh joys!

 

will the learning ever end?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.