Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Some HTML/JS

Featured Replies

I have a php script. This script takes a few variables via POST and performs an action, I would like to make a small page where this action is automaticly performed, since entering the form gets old and I don't want to use GET.

 

 

 

 

 

 

 

Basically, I need a script that does, in the following order:

 

 

 

 

 

 

 

Uses POST to provide a specific value for three different variables, which we can call "1", "2" and "3", without the need for an actual visible (well, it doesn't really matter if it's visible or not :P) form.

 

 

 

Sends the visitor to the script which uses the POST-variables after a second or two.

 

 

 

 

 

 

 

I have no idea how to do this and it would be awesome if someone could help me out. Hopefully I made some sense :)

  • Author

Hmm, the variable thing was simpler than I thought.

 

 

 

 

 

 

 

What I do need however is still a script that triggers the submit button after a second or two.





...







...



  • Author

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

function onLoadAutoSubmit()

 

 

 

{

 

 

 

var form = document.getElementById("myForm");

 

 

 

setTimeout(form.submit, 2000);

 

 

 

}

 

 

 

 

 

 

 

 

 

 

onload="onLoadAutoSubmit();"

 

 

 

 

 

 

 

edit: and I would personally just use static reference to the form..

 

 

 

 

 

 

 

setTimeout(document.myForm.submit, 2000);

 

 

 

 

 

 

 

i believe that should work.

 

 

 

the submit of javascript on the javascript side for a long time :P

  • Author

Tried both changes, still doesn't submit automaticly :/

Tried both changes, still doesn't submit automaticly :/

 

 

 

 

 

 

 

any js errors in the js console?





























hm, somehow that never works on my own machine :-?

  • Author

Works great! I need to work out a few details, but that should do the trick. Thank you everyone :)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.