Forums

Problem with form,

lopezio 27 Apr, 2011
Hi I use a form to receive C++ code. My students have to copy his code and paste it into my form (and I save it in my database). The problem is that they can't submit the code.

Please try it with the following code:

cout<<"Escreva uma palavra";
	cin>>palavra;
	cout<<"Qual a palavra a inserir";
	cin>>insere;
	cout<<"Em que posição pretende inserir?";
	cin>>posicao;
	palavra.insert(posicao,insere);
	cout<<palavra;
	*/
	string palavra="testeaoprograma";
	//char teste[10];
	cout<<palavra.copy(teste,1,3);


You get the error:
Forbidden

You don't have permission to access /index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
It seems to be like a protection system from joomla.
Any help?
GreyHead 13 May, 2011
Hi lopezio,

I just ran a test with ChronoForms v3.2 & v4 and both saved the code without complaint.

I suspect that you are running into a mod_security setting on your server and not any Joomla! or ChronoForms block.

Bob
lopezio 14 May, 2011
Yes Greyhead
I think you are right. It's no a Chronoform problem but the settings on my server
This topic is locked and no more replies can be posted.