Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
721 views
in Q2A Core by

 

In the screen shot below i have created action with my php script to post data but the problem is how can i post anonymously but with email and name?

using script

<?php

	require_once '/PATH/TO/qa-include/qa-base.php';

	require_once QA_INCLUDE_DIR.'qa-app-users.php';
	require_once QA_INCLUDE_DIR.'qa-app-posts.php';
	
	$type='Q'; // question
	$parentid=null; // does not follow another answer
	$title='Why do birds sing?';
	$content='And why do they fall in love?';
	$format=''; // plain text
	$categoryid=null; // assume no category
	$tags=array('birds', 'sing', 'love');
	$userid=qa_get_logged_in_userid();
	
	qa_post_create($type, $parentid, $title, $content, $format, $categoryid, $tags, $userid);

Please log in or register to answer this question.

...