CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Submitting post data for custom profile form with nonstandard client
Pages: [1]

Author Topic: Submitting post data for custom profile form with nonstandard client  (Read 1417 times)

plungerman

  • Guest
Submitting post data for custom profile form with nonstandard client
July 09, 2007, 08:26:34 am
greetings,

are there any restrictions on custom profile forms for receiving post data from a non-standard client?  we want to preprocess form data before passing it off to the custom profile form, and we are using a python application for data verification.  the application sends the data off to the form after everything is checked for errors.  to do this we use python's urllib and urllib2.  as a test, i created a simple profile form with 3 fields: first_name, last_name, email-Primary.  when i send data off to it via urllib, it seems like the form accepts the data but will not process it.  the reply page shows you the form with all fields completed with the data that was sent.  that is, you see in the text fields value="jane" for example for the firstname field. 

our setup:

civicrm 1.7
php5.0.5
mysql 4.1
apache 2.0.55
redhat ent 4

thanks in advance.

yours,

steve

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Submitting post data for custom profile form with nonstandard client
July 09, 2007, 09:40:15 am

You might want to make sure your "submit" button is named properly. Else you can also pass in a hidden form button name.

If u do a view source, u'll see:

<input name="_qf_default" type="hidden" value="Edit:cancel" />
<input class="form-submit default" name="_qf_Edit_next" value="Save" type="submit" />

quickform uses the submit button names to decide what to do with the form. If it does not find one, it just redisplays the form, and hence u see the below behavior.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

plungerman

  • Guest
Re: Submitting post data for custom profile form with nonstandard client
July 10, 2007, 05:20:53 am
thanks donald.  that was exactly what we needed.  as a related note, it helps to include the postURL value as well.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Submitting post data for custom profile form with nonstandard client

This forum was archived on 2017-11-26.