It is not possible to call a php function from a javascript onclick, because php is a serverside language and javascript a client side.
I don’t need a function at all, because I can get the value, entered in the form, by POST.
More Related Contents:
- Search engine PHP return error [closed]
- Auto Increment ID’s of 4 digit
- php nested while loop. Inner loop works only once [closed]
- Can I mix MySQL APIs in PHP?
- How to include a PHP variable inside a MySQL statement
- PDOException “could not find driver”
- MySQL query to get column names?
- How do you connect to multiple MySQL databases on a single webpage?
- Warning: mysqli_connect(): (HY000/1045): Access denied for user ‘username’@’localhost’ (using password: YES)
- Achieve hierarchy, Parent/Child Relationship in an effective and easy way
- PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers
- Insert/update helper function using PDO
- How can I write SQL for a table that shares the same name as a protected keyword in MySql? [duplicate]
- MySQLi count(*) always returns 1
- Using Mysqli bind_param with date and time columns?
- Formulas to Calculate Geo Proximity
- How do I insert multiple checkbox values into a table?
- Is mysql_insert_id safe to use?
- Get all child, grandchild etc nodes under parent using php with mysql query results
- What are the differences between backtick and single quote? Can I use IF statement in a query as above?
- Laravel Migration table already exists, but I want to add new not the older
- Saving images in database mysql
- I cannot use mysql_* functions after upgrading PHP
- Get number of rows matched by UPDATE query with PHP mysqli
- PHP Laravel: No connection could be made because the target machine actively refused it
- SQL Query with binary data (PHP and MySQL)
- How do I format numbers to have only two decimal places?
- Group mysql results by category and display them into groups under each category
- Save array in mysql database
- PHP & mySQL: When exactly to use htmlentities?