Jump to content

[SOLVED] php file in onclick event


phpsql1

Recommended Posts

I do have this button

<input type="button" name ="next" onclick="">

for the onclick event I wanna run a php file called next.php.

 

I tried

 

<input type="button" name ="next" onclick="<?php include('next.php');?>">

and

<input type="button" name ="next" onclick="<?php run('next.php');?>">

 

but none of them worked.

 

any ideas

Link to comment
https://forums.phpfreaks.com/topic/52844-solved-php-file-in-onclick-event/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.