Please help me out if possible

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vinniejonez
Forum Newbie
Posts: 2
Joined: Sun Aug 16, 2009 7:33 am

Please help me out if possible

Post by vinniejonez »

Dear readers of devnetwork,

first off all , thank you for reading my post.
second of all, this is my problem :)

On this page, I want people to be able to write down a form (to advertise an activity)

http://www.vhvisuals.com/meeting/?L=inkspot.write

You can see this question here:

Welke plaats?

After the form is filled in (including the answer on the question "welke plaats?" )
I would like to have this answer showed here:

http://www.vhvisuals.com/meeting/?L=inkspot.index under "lokatie" , where it now says "location2"

for example, if London is filled in at the question "welke plaats?", I would like Londen to be shown under lokatie.

This is the script line that I've written for the inkspot.write file:

<input name="location2" type="text" id="location2" value="{location2}" class="fullwidth">

This is the script line that I've written for the inkspot.index file

{location2}

But it doesn't work. I am a php newbie, and I just try to edit my script. The thing is, I dont have a clue what to do and I don't really have experience with php. Does anyone know how this problem can be solved?

Thanks a lot for reading my post.
Kind regards,
Vincent
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: Please help me out if possible

Post by cpetercarter »

I am not entirely sure what you want. You have a form, but I see from the source code for the page that there is no "action" attribute for the form to indicate what script will deal with the values which are posted when the user clicks the submit button.
However, I assume that there is a script which allocates the value of $_POST['location2'] to a variable $location2. Are you writing the html for the input line in the form in php with an echo statement like this :

Code: Select all

 
echo '<input name="location2" type="text" id="location2" value="{location2}" class="fullwidth">';
 
if so, you need to write 'location2' as '$location2'.
But. as I say, maybe I have misunderstood your problem, in which case please post again.
vinniejonez
Forum Newbie
Posts: 2
Joined: Sun Aug 16, 2009 7:33 am

Re: Please help me out if possible

Post by vinniejonez »

Dear cpetercarter,

I think this is exactly the problem. I don't know what script deals with the values, after you press submit.
This is probably the script that needs to be edited too, before I can create new values like "location2" (which I made up myself). The thing is, I don't know where I can find that script that writes the values in the next form that gives a general overview of all the activities!
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: Please help me out if possible

Post by cpetercarter »

OK, I see now what you are trying to do. You have the PHPizabi software package and you want to tweek it a bit, which is fair enough since it is open source software. The templates in the PHPizabi package are not normal HTML. They use some sort of templating engine, and I can see now where you get the idea that you may be able to make the change you want by adding {location2} into the template. It would take me a long time to work through the PHPizabi package to work out what changes you would need to make, and frankly I don't have the time to do that. I think your best bet is to seek some help from the developers, or from a PHPizabi forum, if there is one.
Post Reply