• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

multiple page edits/addto

 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok, i have a page where the user inputs a review on a certain product.
after they submit, I create a file with the info.

then when i open up my "admin page" the reviews pop up in divs with
"accept" and "decline" buttons.

if i decline i just want to delete the file and make the div not show,
which isnt hard, i can just call a javascript to close the div.

But can i call a PHP function that I made in the current html page?
and call it in the action="" of the form?

and for the "accept", I want the stuff from the file associated with that div to be posted on the main page (where the user first submitted the review), in a different tab.




what i want to do to keep it simple, is simply just write "accepted" to the
file of the information i accept.

but the problem is, i dont know what file to write to when i click "accept"

any help would be appreciated.

Thanks,

Justin Fox
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok, I figured out how to get that done.

Justin Fox
 
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic