Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Action form using php
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Juan Carlos Garcia  
View profile  
 More options Jul 27 2012, 3:42 am
From: Juan Carlos Garcia <jcagar...@up.edu.mx>
Date: Fri, 27 Jul 2012 00:42:22 -0700 (PDT)
Local: Fri, Jul 27 2012 3:42 am
Subject: Action form using php

Hello everyone:

Could anybody help me please, I have an html form in a tpl file, but in the
action parameter how can I redirecto to a php file that I create and where
that file must be located?

Thank you,
Best regards,
JC


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael  
View profile  
 More options Jul 27 2012, 7:03 am
From: Michael <earlgreydiar...@gmail.com>
Date: Fri, 27 Jul 2012 04:03:53 -0700 (PDT)
Local: Fri, Jul 27 2012 7:03 am
Subject: Re: Action form using php

The file can be located anywhere as long as you use the full URL to point
to it. However I prefer to keep all my php scripts in the 'www' folder as
this is the root for mobile site server.

To prevent issues with the main Kurogo file setup I created a folder called
'custom_scripts' (but you can call it anything as long as it is not a
folder name already used by Kurogo, for example you should not call it
'map' as this will interfere with the map module).

Then just store your scripts in there, the URL will begin with the root URL
of your site with "/custom_scripts/[script_name]" appended. For example:

http://server.universitas.com/mobile/custom_scripts/form_script.php

Obviously replace the "server.universitas.com/mobile" with your server
address I hope that makes sense.

Michael


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
matt  
View profile  
 More options Jul 27 2012, 8:17 am
From: matt <m...@mattsmessyroom.com>
Date: Fri, 27 Jul 2012 05:17:04 -0700 (PDT)
Local: Fri, Jul 27 2012 8:17 am
Subject: Re: Action form using php

I prefer to keep it in a module, so for instance there is a module
"helloworld". In the site/app/modules/helloworld folder place a "templates"
folder and put your template "formname.tpl" there. Have it submit to
something like "formname-submit". (This will resolve to
"/helloworld/form-submit) Then in the "initializeForPage()" function for
this helloworld module make a "switch/case 'formname-submit':". Place your
logic for the form here. You'll also want to add a blank
"formname-submit.tpl" file so the system doesn't bark at you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Carlos Garcia  
View profile  
 More options Jul 27 2012, 1:08 pm
From: Juan Carlos Garcia <jcagar...@up.edu.mx>
Date: Fri, 27 Jul 2012 12:08:27 -0500
Local: Fri, Jul 27 2012 1:08 pm
Subject: Re: Action form using php

Thank you very much Mike, The issue has been solved!

Juan Carlos García Sánchez
Tecnologías de Información
UNIVERSIDAD PANAMERICANA
Campus Bonaterra
9106200 Ext 7270


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Carlos Garcia  
View profile  
 More options Jul 27 2012, 1:09 pm
From: Juan Carlos Garcia <jcagar...@up.edu.mx>
Date: Fri, 27 Jul 2012 12:09:16 -0500
Local: Fri, Jul 27 2012 1:09 pm
Subject: Re: Action form using php

Thank you very much Matt! I am trying this method.
Best regards,

Juan Carlos García Sánchez
Tecnologías de Información
UNIVERSIDAD PANAMERICANA
Campus Bonaterra
9106200 Ext 7270


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »