Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 2 Hours, 46 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

GET and POST in the same Joomla! arcicle?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: GET and POST in the same Joomla! arcicle?
#3939
GET and POST in the same Joomla! arcicle? 2 Years, 6 Months ago  
Hi Peter,
I'm trying Sourcerer. It works.
But I don't know how to apply it in order to manage a Form.
I want to call a form in an article and put or wiew the results in or from a database table.
I'm trying it with a contition in order to go to the form or to the action after it (whith POST).

If I to it froma an esternal php file this works, but if I try it in a Joomla article with Sourcerer it goes again to the same part of the condition.

Any ideas?

Thanks in advance,
Gonzalo

---------------------------------------------------------------
Example:

{source}
[[?php

$aa = $_SERVER['REQUEST_URI'];

if (!isset($action)) {

echo("<form name='form1' action='www.uprait.org$aa?action=yes' method='post'>
Name: [[input type='Text'' name='name']]
[[input type='Submit' name='ok' value='OK!']]
[[/form]]");

} elseif($action=="yes") {

echo ("Name: $name");

}

?]]
{/source}
Gmiranda
Posts: 3
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#3956
GET and POST in the same Joomla! arcicle? 2 Years, 5 Months ago  
Hello,

I have resolved this issue by calling different articles to manage the form.

From the article that contais de form I pass the input values to another one, just callin the url (whit the number of the article):

www.mydomain.org/index.php?option=com_co...w=article&id=108

From that article I pass the input values to another one, etc.
I have noticed that if I use GET it doesn't work: the Home page allwais comes! I must use allways the POST method.

This way I have:

Article 1: searh
Article 2: result list table
Article 3: the complete record clicked by the user
Article 4: edit the record
Article 5: delete the record

I have also aplied a system to reorder the list table. In this case I call the same article in which I have the list table, passing the inmput values to itself, with the same value names used to generate the list (from the previous article).

I'm happy if this explanation can help someone.

By,
Gonzalo
Gmiranda
Posts: 3
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#3983
GET and POST in the same Joomla! arcicle? 2 Years, 5 Months ago  
thanks for the info
Peter van Westen
Admin
Posts: 9169
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support
hosting joomla