初心者のFileMaker pro Q&A (旧掲示板)

みんなに優しく、解りやすくをモットーに開設しています。 以下のルールを守りみんなで助け合いましょう。

1.ファイルメーカーで解らない事があればここで質問して下さい。 何方でも、ご質問・ご回答お願いします。 (優しく回答しましょう)

You are not logged in.

Announcement

新しい掲示板は、こちら:https://fm-aid.com/forum/t/filemaker


#1 2016-08-27 00:35:25

した
Guest

FilemakerServer API の設定

FilemakerServer API がうまくいかず困っています。

■postform.html → ■post.php  がうまく動きません。

ご教示お願いします

■postform.html
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
    <h1>ミニブログ</h1>
   
    <form action="post.php" method="post">
        <textarea name="contents" cols="35" rows="4" maxlength="140"></textarea>
        <input type="submit" value="投稿">
    </form>
</body>
</html>

■post.php
<?php
require_once('FileMaker.php');
require_once('server.php');

$contents = $_POST['contents'];

$add =& $fm->newAddcommand('post_master');
$add->setField('contents',$contents);
$result= $add->execute();


■server.php
<?php
$fm = newFileMaker('miniblog' , 'localhost' , 'php' , 'php');
?>

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.004 seconds, 7 queries executed - Memory usage: 499.02 KiB (Peak: 518.3 KiB) ]