Skip to content
Advertisement

Tag: forms

Symfony2.4 form ‘This form should not contain extra fields’ error

I’m trying to build app based on REST api ang AngularJS. I’ve been following this tutorial http://npmasters.com/2012/11/25/Symfony2-Rest-FOSRestBundle.html but have to change some details ( depreciated methods ) and right now when I post to create new entity I get ‘This form should not contain extra fields’ error. my TaskType form: right now in my view I’m rendering only one form

Laravel use same form for create and edit

Am quite new to Laravel and I have to create a form for create and a form for edit. In my form I have quite some jquery ajax posts. Am wondering whether Laravel does provide for an easy way for me to use the same form for my edit and create without having to add tons of logic in my

Why php tag is not working in html file?

I have a register.php file and I have defined $name=”” inside that file and now in the html form I have: But the output is <?php echo $name; ?> instead of empty! Any idea of how I can fix this? Answer Your web server will server the HTML page as is. It will only parse the HTML as best as

Send value of submit button when form gets posted

I have a list of names and some buttons with product names. When one of the buttons is clicked the information of the list is sent to a PHP script, but I can’t hit the submit button to send its value. How is it done? I boiled my code down to the following: The sending page: The receiving page: buy.php

“Delete row” button for MySQL in PHP

I have a table that becomes populated with data from a MySQL database, and each row receives its own delete button. I would like to have the option to delete each row separately with a delete button that deletes the corresponding row in the database. How would I go about doing so? Here’s the part of the code that I

Executing Python Script with PHP Variables

I am writing a simple application that uses information from a form, passes it through $_POST to a PHP script that executes a python script and outputs the results. The problem I am having is that my python script is not actually running with the arguments being passed in. process3.php file: Output: At the top of my wordgame2.py, I have

With PHP, why does option selected not always work?

While I realize that this isn’t the most efficient bit of code, it will not work for August or September! I’m using PHP 5.4 and XHTML 1.0 Transitional. I’ve tested it in the lasted IE, Firefox and Google browsers. I’ve checked the code that is sent to the browsers and there isn’t anything different about August or September. All the

Advertisement