Insert record does nothing

Hello

I'm trying to follow this tutorial to make dynamic Web sites:

http://www.Adobe.com/devnet/Dreamweaver/articles/first_dynamic_site_pt2.html

I did part 1 completely and that you was fine until trying to set up the Add Post feature.  The database works well group information in the page manage messages and when I add the server behavior insert record, it looks good, but hitting the "Post!" button does nothing mode live view or in the browser preview.  It does not add the record, nor it redirects to the manage_posts.php link.  There simply nothing even when I'm holding cmd click (I use a Mac).  Other links are working fine.

I can add a record manually in phpMyAdmin and make it display properly in mode live view on the manage_posts page.

I use a leapord mac snow running and using the Cloud Dreamweaver CS6 Designer.  Using MAMP for a local server and phpMyAdmin, exactly as they appear in the first part of the tutorial.

Code is copied below:

<? php require_once('.. / Connections/check_mag.php');? >

<? PHP

If (! function_exists ("GetSQLValueString")) {}

function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

{

If (via PHP_VERSION < 6) {}

$theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

}

$theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

Switch ($theType) {}

case 'text ':

$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

break;

case "long":

case "int":

$theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

break;

case "double":

$theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

break;

case "date":

$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

break;

case "set":

$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

break;

}

Return $theValue;

}

}

$editFormAction = $_SERVER ['PHP_SELF'];

If (isset {}

$editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

}

If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}

$insertSQL = sprintf ("INSERT INTO new (title, blog_entry) VALUES (%s, %s)," ")

GetSQLValueString ($_POST ["title"], "text").

GetSQLValueString ($_POST ['blog_entry'], "text"));

@mysql_select_db ($database_check_mag, $check_mag);

$Result1 = mysql_query ($insertSQL, $check_mag) or die (mysql_error ());

$insertGoTo = "manage_posts.php";

If (isset {}

$insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;

$insertGoTo. = $_SERVER ['QUERY_STRING'];

}

header (sprintf ("location: %s", $insertGoTo));

}

? >

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

" < html xmlns =" http://www.w3.org/1999/xhtml ">

< head >

< meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

Add Post < /title > < title >

"" < link href = "... / styles/admin.css" rel = "stylesheet" type = "text/css" / >

< / head >

< body >

< h1 > what's the buzz? < / h1 >

< p > < a href = "index.php" > Admin Menu < /a > < /p >

< do action = "<?" PHP echo $editFormAction;? ">" id = "form1" name = "form1" method = "POST" >

< p >

< label for = "title" > title: & #160; < / label > < input name = "title" type = "text" class = "textfields" id = "title" maxlength = "150" / >

< /p >

< p > < label for 'blog_entry' = > Post: & #160; < / label >

< name textarea = 'blog_entry"cols ="45"lines ="5"id ="blog_entry"form ="form1"> < / textarea >

< /p >

< p >

< input name = "button" type = "button" id = "button" form = "form1" value = "post"! / >

< /p >

< input type = "hidden" name = "MM_insert" value = "form1" / >

< / make >

< p > < / p >

< / body >

< / html >

Which do not appear to be featured here?  Any help would be greatly appreciated.

Your "poster!" is a button, not a submit button.  Change to a type = 'submit' and see if it works.

^_^

Tags: Dreamweaver

Similar Questions

  • Inserting record does not

    Hi all


    I use the regular insert statement to insert values into the table.
    After me pressing the button create, IE
    "ORA-01400: cannot insert NULL into ('APEX_DATA'. '. "" "WC_APEX_MKT_CAMPAIGN_DS '." " CAMPAIGN_CODE")"

    but I'm a value in the text box P3_NAME
    Please any suggestions are especially appreciated.

    Thanks in advance
    Robert l

    Hello

    What you after validation (which don't say item is null) and before insert?
    You have another process that could set the item with a NULL value?

    BR, Jari

    Published by: jarola April 14, 2010 10:15

  • Bean inserted record does not show in the table of the ADF until it is saved

    version 12.1.2.0.0

    I do the following to create lines in a table. Line is born but they do not appear in the page. Please let me know what I do wrong or missing.

    vinaykumar2

    code to create the line

    ADFUtils.findOperation("CreateInsertReim").execute ();

    ADFUtils.setBoundAttributeValue ("TypeOfFinancingReim", "SC");

    ADFUtils.setBoundAttributeValue ('year', vYear);

    ADFUtils.setBoundAttributeValue ("quarter","2");

    ADFUtils.setBoundAttributeValue ("Amount", castDoubleToJboNumber (vdivident *-1));

    ADFUtils.setBoundAttributeValue ("Type", "R");

    ADFUtils.setBoundAttributeValue ("Rdtype", "DIV");

    link to 'CreateInsertReim '.

    < action IterBinding = "ForecastReim1Iterator" id = "CreateInsertReim" RequiresUpdateModel = "true" Action = "createInsertRow" / >

    Best regards

    Chatterji S

    You see lines in the db table? If you create lines at the bean. you add partial trigger programmatically.

    as below

    AdfFacesContext.getCurrentInstance () .addPartialTarget (getTableId);

  • Sound recorder XP does nothing.

    Sound recorder XP does nothing when I click on save.  No sound is recorded.  The progress bar does not move.  The saved file is zero byte.

    Test call Skype is very good.  Record PVR works.

    I found Nero software and it works very well so no need to fix Win Sound recorder.

    Put an end to this string?

    ================================
    Excellent!

    Thanks for the update.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • MySQL Db stopped inserting records

    I'm developing a web site that accepts a user input and adds a new record to a table in a MySQL database. He has worked for a few weeks now add 70 + new test records. Well... I broke something and now he is no longer inserts records but does not give me of all error messages. I did not something obviously wrong with the form, even if I made some changes to the form.just before he fell. I refreshed the server behavior and also tried to delete and recreate the server behavior's done everything to nothing.

    I'd appreciate really some directions on this troubleshooting. I am using DW CS6 and IE11 test, Chrome, FF on Win 7.

    The page that I am developing can be seen here http://www.hollisterairshow.com/rally/vendorApp.php?blapp=yes & tspapp = yes , you will see a 'Send' button and a 'Next step' button, either should work, they both work previously and now none of them work.

    Thanks for any advice on this.

    Tony

    I think that the fault lies soemwhere in your spy validation script. If comment on them you all out (as below) information is sent. (can be a difficult task of isolation that one is causing the problem). You will need to comment on each one individually to find the culprit and see what kind of relationship we have with the form. To me, it seems that the form does NOT work because the validation is perhaps incomplete.

  • CS3 breaks date format in MS Access on insert record

    It's strange.

    I worked on one of my old sites, built in MX 2004. After updating the record insertion on the page using CS3 behavior, I noticed that my date fields are messy. My LCID is set to 2057 UK date (dd/mm/yyyy) format, but it is now getting back to mm/dd/yyyy.

    I recall it being a 'Date, MS Access' option in the ' submit under "fall down on the insert record behavior MX 2004, but this seems to be missing.

    I have nothing on the output allows to reverse the change, so now my old disks display dates in the correct format, and new records have the wrong date on them.

    And of course, you don't notice this error before the 12th of the month, after which the system can decide who should be the month.

    So my clients resonate me up to two weeks after that day to tell me that their application is broken. Arrgh.

    Is there an extension for this problem / add the necessaru to the insertion of a plug or someone behavior at - it a snippet of code that works?

    Is this something a bug in CS3?

    OK, I found a solution quick and dirty, which is basically does not submit the field as a date.

    I found that I needed to change this line of code:

    Quote:
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param5", 135, 1, -1, MM_IIF (UploadFormRequest ("article_date_updated"), UploadFormRequest ("article_date_updated"), null)) ' adDBTimeStamp

    with this:

    Quote:
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param5", 202, 1, 150, MM_IIF (UploadFormRequest ("article_date_updated"), UploadFormRequest ("article_date_updated"), null)) ' adDBTimeStamp

    The difference being these settings: "135, 1, - 1" becomes "202, 1, 150".»

    I don't understand what these are (can't find a reference for them), but the third should be the length of the string, the first of the type of data (e.g. variable text, number, date) and one in the Middle, unsure, whether his need maybe?

    If the first of these parameters can be set for the exact date, it would be the right solution, but I don't know if this is possible.

    Anyway, the work around is OK - condition that there is sufficient validation on the form to choose the invalid date formats.

  • Finder-&gt; sharing of Mail or Notes does nothing

    I have the MacBook Pro (retina, 15 inches, mi 2014)

    It used to work before but not sure when it stopped updating of OS X El Capitan its launch if upgrading the origin of the problem.

    Here are the details:

    1. open Finder

    2. right click on a file (an image or text file) and click on share

    A list appears as a form of share options

    3. by clicking on the Mail or Notes or any other option does nothing

    4. after clicking on the option, the Finder disables other options also

    And I need to restart the finder because it stops to change records and by closing the window also.

    5. I tried to run the following to reset, but did not work

    /System/Library/frameworks/CoreServices.Framework/versions/A/frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister-tuer - seed

    Can someone help to solve the problem?

    Thank you!

    Post edited by: neeerajs

    Test in a new user quickly will tell you if the problem is system-wide or if your user folder that contains the problem.

    CREATE A NEW USER

    Go to system-> Preferences, create a new user in users and groups.

    Switch to the new user by logging incoming/outgoing or use the fast user switching.

    You can ignore the signature with your Apple ID, unless you want to test iCloud

    By default only the applications Apple will be in the dock in the new user. Go to Applications to open other apps, that you can test.

    You still see the issue?

    If Yes, then the problem is with your core files.

    You can try running the updated Apple combo. Often, it will fix weird questions.

    Update of OS X El Capitan 10.11.6 Combo

    https://support.Apple.com/kb/DL1885

    If not, then the problem is in your user folder.

    Try to remove the com.apple.finder.plist in the user's Library/Preferences folder.

    Restart then check. You may reset some of your preferences after deleting this file.

  • Tecra R10 - 10J - card reader does nothing

    Hello world

    I have a tecra R10 - 10 days with a Windows 7 32 bit installed. I installed the latest driver for the card reader (ricoh driver for Windows 7 32 bit). In my admin panel, it says that the SD reader is correctly installed.

    When I insert an SD (standard SD or SDHC) card it does nothing. I mean it doesn 't create a new icon in the control panel of my computer. I checked the battery management. The controller card is 'activated '. I also have the latest bios for TECRA R-10 10J.

    Any help?

    Hello

    Which cards you are trying to insert? I have good experiences with SanDisk SD and SDHC cards. For my camera, I use San Disk Extreme III SDHC card. A high quality map which s and never had any problems with it.

    Also have you checked Windows Disk Manager? Maybe the card appears in the list but not also formatted.

  • My computer seems to be frozen configuration updates. does nothing.

    My computer is stuck at configuration updates.  It is said stage 3 of 3... 100% complete.  Do not turn off your computer.  The computer has to be on hous.  I tried to reboot in safe mode, but it is up to the same message.  Pressing control alt dlelete does nothing.  I use windows vista Home premium.  I would really appreciate help with this.

    Hi Donna,

    Welcome to the community forums of Microsoft and thanks for posting the question. According to the description, computer is blocked to updates (3 of 3 100% full) configuration. We will perform some troubleshooting steps and try to resolve the issue.

    Method 1:

    Rename the Pending.xml file, and then change the registry.

    Note: Serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: (http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry ) how to back up and restore the registry in Windows)

    To rename the Pending.xml file, and edit the registry, follow these steps.

    Has) start Windows Vista and go to the system recovery options:

    1. Insert the Windows Vista installation disk into the disk drive and restart the computer.

    2. When you are prompted to restart from the disc, press any key.

    3. When you are prompted, configure the language to install, time and currency format and keyboard or options for method of entry that you want, and then click Next.

    4. on the page to install Windows, click on repair your computer.

    5. on the System Recovery Options page, click the version of the Windows Vista operating system that you want to repair, and then click Next.

    B) use the system recovery options to rename the Pending.xml file and edit the registry:

    1. in the System Recovery Options page, click on command prompt.

    2 type cd C:\windows\winsxs, and press on ENTER.

    3 type ren pending.xml pending.old, and press on ENTER.

    4. type regedit and press ENTER.

    5. Select HKEY_LOCAL_MACHINE.

    6. on the file menu, click on load the hive.

    7. look for the following folder:

    C:\windows\system32\config\components

    8. When you are prompted for a name, type Offline_Components.

    9. in the registry editor, find and delete the following registry subkey:

    HLKM\Offline Components\AdvancedInstallersNeedResolving

    HKLM\Offline Components\PendingXmlIdentifier

    C) exit the Registry Editor:

    1. at the invite command, type exit to quit the registry Editor.

    2. press on ENTER.

    3. click on restart.

    Method 2:

    Then try to install the updates.

    For more information, go through the link below.

    The update is not installed successfully, you receive a message, and the computer restarts when you try to install an update in Windows Vista

    http://support.Microsoft.com/kb/949358

    Hope this information helps. Please reply with the status so that we can help you.

  • My search in the start menu box does nothing

    When I click on START and open the classic Menu, I have the normal search below box and I can type things in.

    But using enter, does nothing.  If I put the cursor at the end of the text to search for, it still does nothing.

    How to READ the text to find?  especially I need help with the features in Windows 7 no files, records, etc.

    The only way to make it work is to KILL the classic menu, return to native Windows and use the search box, but that requires initialization, etc..

    Thanks for the reply.

    I use Microsoft Essential antivirus and there are no questions.  Have made no other major changes that some installs of some free software simple.

    But, today, I rebooted and re-installed and now it seems to work.

    Thank you.

  • File-save dialog often does nothing when I click on "Save".

    Same problem here.  The symptoms are slightly different w7-32 and w7-64, but the starting point is the same, that is, the file dialog - record often does nothing when I click on "Save".  Sometimes, after repeated clicks or wait a minute or two, it will work.  Sometimes it will work immediately.  The only way that it still works, it is if a file of the same name already exists in the target folder, and then select this file in the folder view, and then clicking "Save" allows the dialogue to "complete" (with a message "replace?").   Sometimes under w7-32, by selecting the drop type file helps also.   The problem occurred in my own applications, so I can choose to use the 'XP' or 'Vista' dialog style, but both exhibit the same behavior.

    I have some flash videos illustrating the problem, if anyone from MS wants to see them...

    'style XP' http://www.youtube.com/watch?v=lbA27g5bm9Y
    "Vista-style" http://www.youtube.com/watch?v=h3t2TrWEPGw

    K

    I tried my question once again this morning and it seems to have been solved (for now!)  I had a few Windows updates until then perhaps this solved the problem?

    K

    Edit: maybe this update addressed the issue?

    http://support.Microsoft.com/kb/2640148

    K

  • Is it possible that when the new record is inserted in a table then this empty inserted record is automatically displayed without scrolling?

    Mr President.

    Is it possible that when the new record is inserted in a table then this empty inserted record is automatically displayed without scrolling?

    Because I change the size property of the table 5 range and my new record is inserted at no 10.

    When I click the addRecord button the new parallel line does not appear, do scroll down to see it.

    I want that we don't have to scroll down.

    The line is displayed automatically.

    as shown in the photo my behavior of page.

    scrolling.png

    Concerning

    If you just need the newly created line to be visible,

    You can simply set contentDelivery = 'immediate' and displayRow = "selected".

    P.S. the blog mentioned above only.

    See you soon

    AJ

  • What order entry Workflow activity that inserts records into RA_INTERFACE_LINES_ALL?

    Hello!

    I want to change the line Flow - generic, Bill only with the inventory Interface by creating a function that inserts records in RA_INTERFACE_DISTRIBUTIONS_ALL. What I have done to insert a function between CLOSE - LINE and END and this are the results:

    1. it triggers all the lines which has no settings (discount and promotion) defined the distribution folder is written.

    2. it fires at each main element that has promotion (buy one, get one) but does not fire on the lines of promotion.

    3. it does not at all for the lines that gave it.

    My question is, where do I insert my function successfully intercept this event? It is certainly in one of the online activities of invoice Interface, deferred payment and Close - line.

    Thank you.

    Jon

    On further analysis, I discovered that it takes on all the lines in the OE_ORDER_LINES_ALL, but since if the line has discount or products free, it will create additional folders to offset the discount/free goods in the RA_INTERFACE_LINES_ALL, but only fires once, you must loop through all the records in the RA_INTERFACE_LINES_ALL that make up a line_id in the OE_ORDER_LINES_ALL of to be able to properly process records to RA_INTERFACE_DISTRIBUTIONS_ALL.

    Thank you.

    Jon

  • Problem with Insert Record

    Hello

    I currently work in the second part of the tutorial "build your first dynamic Web site. The specific page may be found here:

    http://www.Adobe.com/devnet/Dreamweaver/articles/first_dynamic_site_pt2.html

    I spend all this without any problems... until I get to the section called "Test the insert record Behavior. When I get here and open my code in the web browser, the page rest sleep.

    What I have done:

    1A asked a representative of Adobe by phone what they suggest. They had no suggestions and no page to read on.

    2 remove my entire site and has completely and going through the tutorial everything Word for Word. I'm stuck at the same point each time.

    What I need:

    1. any possible solution. I have already read through every possible article, and there is not one that resolves this problem.

    * Note: later in the tutorial, I was told to find the name of the file "php_test.sql" when looking on the files Panel. This file wasn't there. Just thought I would mention it.


    Thank you

    SWEKO wrote:

    Thank you for your understanding.

    No, the file opens. But after all done werecreated, the database was created and the server is connected, the action "Insert record" will not work for my forms.

    I thought that I made a mistake somewhere, so I Redid the entire site. It still does not work.

    Have you checked YOUR code against the working version in the tutorial folder?

    Please copy - paste the code pages here so someone can take a look.

  • MySQL Insert Record

    I have a database for a business application & I am trying to build a few pages simple insert to insert records into the database.

    I built the forms of insertion, but when I try to save inserta, the primary key is not automatically applicable to registration, as is automatic numbering should be applied to another field? However, the data are address in the table? I'm assuming that the database that automatically apply as it does in the application?

    what Miss me?

    Thank you

    Pete

    In MySQL:

    CREATE TABLE une_table)

    ID smallint (5) unsigned NOT NULL AUTO_INCREMENT,

    rest of the table

    PRIMARY KEY

    ) Engine = engine //some

Maybe you are looking for

  • A200_10X modem fails to connect via the wheel upwards

    The laptop was purchased from the Kingdom of Saudi Arabia and is used in India.The modem does not support connections to call.

  • Allen Bradley driver

    I have not so far had the chance to create a pilot for a PLC.  I know few things about the PLC architecture, but what I read on the web.  First of all, I would like to know is the similar to the 488 protocol driver interface.  Can I simply write "str

  • Problems to open attachments using Skydrive?

    I sent an e-mail with an attachment to my e-mail of the school because the school does not hotmail open.  I'm at school now, so I can't access that I have supreme Envoy.  My school uses a private messaging service.  When I click on the link, Skydrive

  • BlackBerry 10 Z10 come and go

    I have been using site crackberry, and when ordering merchandise I wanted to return to correct some information from the previous screen. When I try to go forward even when I can't figure out how to go back to the right. Can anyone help please.

  • C4780 recoginizing paper not

    Reloading the paper in the tray c4780 several times, but continue to receive an out of paper message when you try to print.  Have tried the photographic paper and regular paper.  No difference in results.what I should do next.  The user manual is imp