Help with PHP and hidden forms
-
Hello,
As I mentioned in this previous post (https://ww.wp.xz.cn/support/topic/need-help-with-a-child-sponsorship-via-website-for-school-in-africa?replies=1#post-7814834), I am working on a child sponsorship program for a non-profit in Africa. I have progressed in some ways but am looking for some help with, I think, PHP.
Right now I have it so that I would click on one of the students from the sponsorship page, it would open a new page with information about that student and his/her picture, and a button that says “Sponsor this child”. What I want is for that to open a new page where the donor/sponsor can put in their billing information, but when that form is submitted, the sponsor’s info is kept with the student’s info, and our organization can see who is sponsoring who.
Can someone help me with some tips on how to do that? I was doing some reading and it seems like I might use
<form action=”this is where I need the help I think”.php”>
<button>Sponsor this child</button>
<input type=”hidden” name=”sponsorship?” value=”uniqueid for student?” />
</form>
I don’t have any experience with making forms and very little experience with PHP (I am using wordpress).
Any help would be SO appreciated, not by just me, but by hundreds of kids looking to get their primary school education paid for in Uganda!
Thank in advance.
The topic ‘Help with PHP and hidden forms’ is closed to new replies.