how to retrieve a javascript value in php

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

nahydy
Forum Commoner
Posts: 25
Joined: Wed Aug 22, 2007 5:55 am

Post by nahydy »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


ok for the empty String i found what cause the problem i forgot to add an id for my hidden input. Now i can do this in my controllers:

Code: Select all

function formulaireAction()
{
	
	$this->view->title = "formulaire d'inscription";
	if ($this->_request->isPost()) 
	{
		
		$res=$this->_request->getPost('tabs_coords');
		
		$fields= explode(',',$res); 
		
		//$this->view->message=$this->_request->getPost('tabs_coords');
		
		
		
		//var_dump($_POST['tabs_coords']);
		var_dump($fields);
		
		
		
		$this->render();
	}
}
thank you for your help


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Post Reply