Jump to content

"... you mean these fans?"

Members
  • Content Count

    378
  • Joined

  • Last visited

  • Days Won

    1

"... you mean these fans?" last won the day on January 3

"... you mean these fans?" had the most liked content!

Community Reputation

1 Neutral

About "... you mean these fans?"

  • Rank
    newbie
  • Birthday 04/23/1960

Profile Information

  • Gender
    Male
  • Location
    Baltimore, MD
  • Interests
    Filemaker and Forex

Contact Methods

  • Skype
    tomtheriault

FileMaker Experience

  • Skill Level
    Intermediate
  • FM Application
    16 Advanced

Platform Environment

  • OS Platform
    Mac
  • OS Version
    macOS Mojave ver 10.14.2

FileMaker Partner

  • Certification
    Not Certified

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Mr. Ignoramus We have a solution in Canada where we moved the db from a hosting company to a LAN ( customers building ) They are using a Mac OS machine running FileMaker 16 server. We access the FM 16 server via apple's remote access, having trouble locating where we would put the index.html and php files for our web form that we used when we were hosting on an outside hosting company. The hosting company put the html/php file in the folder that designated our account number. My question is this ... where would we put the two web files; index.html (form) and the .php (create record in FM) file on the FM 16 server. I can not seem to locate the instruction via the documentation FM is providing. Have done several internet search ... I am gathering information to pass to the individual helping us with the FM server at location. Anybody able to provide a link or guidance I would be grateful. Thank you.
  2. ggt667, This is what worked .... unset( $tmp ); foreach( $_POST as $k => $v ) { $tmp[] = "$k: $v \n"; } $request->setField( 'WBForm_Post_Var', implode( $tmp ) ); I took a guess and flipped the $k and the $v in your example above and noticed that I got the other value in the value pair, since I needed both value pairs, I googled how to put two variables together. Thank you. Finally got what I wanted. I'm reading up on the unset() but still confused, why the unset() and why the $tmp ? ... and this makes no sense at the moment "$k =>$v" even after reading multiple php sources ... anyway, $request->setField( 'WBForm_Comments', var_dump( $_POST ) ); Also, this worked only once, meaning it pushed the field values of the $_POST into the FileMaker field I designated. But never worked afterwards ? doughemi, foreach ($_POST as $value){ $list = $list . ',' . $value; } $request->setField('YourLastField', $list); I never could figure out why this errored, but the error was in the $list = $list line ... ? Can't remember exactly what the php error stated ... sorry. Thank you.
  3. ggt667, This does not work any more, meaning it dumps the $_POST variable to the web page, not the field ... ? It worked once, meaning I got the results I wanted in the field. So I said thank you and went to bed. What I should have done is checked it 3 times ... 😞 $request->setField( 'WBForm_Comments', var_dump( $_POST ) ); I am scouring google, and reading as many tutorial as I can to try and find a way to write the $_POST variable to a field in FileMaker. doughemi, I'm going to retry your suggestion again ... for some reason it produced an error. Anybody with any suggestion I would be grateful. Thank you. Mr. ignoramus
  4. ggt667, This worked ... $request->setField( 'WBForm_Comments', var_dump( $_POST ) ); Thank you 🙂 I will format the field within FileMaker to add the field names. Thank you. I will format the field within FileMaker to add the field names. Thank you. doughemi, I copied then pasted the actual field name into that position ... it was just the curser. Anyway, I got it. Thank you.
  5. Thank you comment ... that link is working with a variable within FileMaker. I'm inside a php script. ggt667 - It's not impossible <?php echo '<pre>'; var_dump( $_POST ); echo '</pre>'; ?> This will push the data inside the $_POST variable to the webpage ... I don't want to do that, Im entering field data into fields in FileMaker. All I want to do after I've entered each value into each of the 25 fields is to write/list/enter whatever is in the $_POST data into ONE FileMaker field - all the data. I am currently extracting each value inside the $_POST variable independently by doing this .... $request->setField('WBForm_First_Name', $_POST['first_name']); ( I have 25 of these ) each to a different FileMaker field. My final step is to consolidate all the value inside the $_POST variable into one field. The best I can come up with is the following ... $request->setField('WBForm_Comments', extract ($_POST)); ... but ... I get 25 .. which is OK, but I want the values ( company name, company contact, address, phone, etc .. ) not 25 ... ? So is there a way to pull out all the values inside the $_POST variable ? and then list them in a Field in FileMaker that I've designated. Thank you. Mr. Ignoramus Thank you doughemi 🙂
  6. Hi, I am wanting to list in a FileMaker field all the $_POST data ... I've been trying different suggestion but no luck. $request->setField('WBForm_First_Name', $_POST['first_name']); $request->setField('WBForm_Last_Name', $_POST['last_name']); ... 23 more. The next $request enters the number 25 in the WBForm_Comments field ... I have 25 fields in my form. $request->setField('WBForm_Comments', extract ($_POST)); The last step of the $request->setField I would like to list the actual data inside the $_POST to a non-editable field so the customer can look at for reference in the event they edit fields that were populated individually and needed to reference what the form had originally. Isn't there a "Name=Value" pair for each field I am populating inside the $_POST variable ? and how can I list out the $_POST variable into a FileMaker field ? Could anybody provide a link to somewhere or some suggestion/hint that would explain how to list out the $_POST ... I have been unsuccessful so far. I would be grateful. Thank you. Mr. Ignoramus
  7. doughemi, The record created ... thank you. I get this error though ... PHP Notice: Undefined variable: list in C:\Program Files\FileMaker\FileMaker Server\HTTPServer\conf\5072\c_newrecord.php on line 57 As long as the record is being created I'm good to go. Yes I would like to error out if the record does not create so the customer can see that there was an issue, with some instruction what to do, but I will take this for now. Fantastic. Thank you. ***I did not want to forward the files but I had no choice, the tutorials (many) were useless other than Soliant's php db connection test and I am unable to communitcate to this forum in a manner that you guys require. I can only say, I am sorry. And, I still have no idea what went wrong. I will take time now and study your file; run many test ... Again thank you. I'm going to comment out this error and put pack the thankyou.php. This was an exhausting ... 5 days. To whom it may concern, doughemi suggest that I remove the pdf / files I had to post to resolve this issues, but I have no way of doing this ?? The edit button is not available to me anymore. If anybody has any suggesiton how to do this I would be grateful. Thank you.
  8. So I navigated over to Soliant and they had a little php to test the connection ... I ran it and adjusted the parameters so that I got the "connected" echo. So I went in an replaced my entries in my php and I still error. I've reattached the form ( index.html ) the create new record ( c_newrecord.php ) and the thankyou.php. The url: https://31.datatrium.com/5072/index.html Any assistance here I would be grateful. I am only pushing in one field from the form at this time. will do the rest later when things work. When I click on the submit button the form action is calling the c_newrecord.php script. This is right from the tutorials I'm referencing. I just don't understand what I'm doing wrong. Thank you. index.html c_newrecord.php thankyou.php Here is the test_connection.php file; test_connection.php
  9. Here is the error that is returned. I've included some other stuff. Thank you. mrignoramus_01.pdf I am going to assume that "pm" means permissions ? I've got a call into the server to check on them. But on my side, I've create the account for the php and I've assignd the php access in the privilege set. So I don't know what else I can check. Thank you.
  10. doughemi, Thank you for the file ... I just returned with what I've done and noticed your file. I will have to study it. I've attached what I've done and I can not get past the $fm variable error. For some reason I can not log into the database. I've removed sensitive log in data but I have tried both the numeric value for the host and the host name; meaning hostname.com and 121.34.43.0 I also tried entering the file name; menaing FileName and FileName.fmp12 I also tried entering both the include and the require_once I keep erroring on line 13/14 I've checked the server to make sure php is on and that the user has been assigned the privilege set for the php ? I'm planning on speaking to the server in the morning to see if there are any privileges not set on the server end ... can any one look at the code I've written and see if I'm doing anything wrong. I would be grateful. Thank you. c_newrecordtst.php
  11. Hi, GitHub is too complicated for me ... sorry. Thank you. Mr. Ignoramus Need a parent / child relationship here ... 🙂
  12. Not what I am asking for 😞 1 - Not required - available databases - Already know database name 3 - Not required - just want to post data to database ... then send back "Thank you will be in touch." Again, this is too complicated ... need step by step. I've done it, frustrating I can not remember the process. Still looking for an practical tutorial that explains how to connect to a FileMaker database from a html page, post the data on the html page and return a text string "Thank you will be in touch". Any assistance here I will be grateful. Thank you. Mr. Ignoramus
  13. Hi, No. All is did was write basic html with php together on the same page html page from a text editor and placed on the server in a certain folder. This was a while back. It wasn't very complicated but I just can not remember all the details ... frustating. Thank you. I know I had to log in the user to the database which was done in the back ( hidden ) when I posted the form ... but I need to piece all the pieces back togther again. Any examples that would include retreving the base html ( form data ) then posting ( logging In -> create record -> enter data into field -> sending back a "Thank you will get in touch" ) I would be grateful. Thank you.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.