Dirtrocker
Technical User
Any help on this would be appreciated.
Here is what I am trying to do. I have a preview message button. I would like to set it up that when they click on the submit button, it pops up a little window that asks if they supplied the information needed? When they click ok, it closes the little window and proceeds or they can click no and it closes the little window and lets them enter the info. The code I am working with is below.
I'm not sure where to start.
<FORM METHOD="post" ACTION="$databoard_url">
<INPUT TYPE="hidden" NAME="forum_name" VALUE="$forum_name">
<INPUT TYPE="hidden" NAME="pid" VALUE="$form_data{'pid'}">
<INPUT NAME="form_action" TYPE="hidden" VALUE="$form_data{'form_action'}">
<INPUT NAME="name" TYPE="hidden" VALUE="$form_data{'name'}">
<INPUT NAME="email" TYPE="hidden" VALUE="$form_data{'email'}">
<INPUT NAME="subject" TYPE="hidden" VALUE="$form_data{'subject'}">
<INPUT NAME="body" TYPE="hidden" VALUE="$body_text">
<INPUT NAME="notify_me" TYPE="hidden" VALUE="$form_data{'notify_me'}">
<INPUT NAME="post_type" TYPE="hidden" VALUE="$form_data{'post_type'}">
<INPUT NAME="link_url" TYPE="hidden" VALUE="$form_data{'link_url'}">
<INPUT NAME="link_title" TYPE="hidden" VALUE="$form_data{'link_title'}">
<INPUT NAME="image_url" TYPE="hidden" VALUE="$form_data{'image_url'}">
<INPUT NAME="parent" TYPE="hidden" VALUE="$form_data{'parent'}">
<INPUT NAME="children" TYPE="hidden" VALUE="$form_data{'children'}">
<br><br>
<center>
<INPUT TYPE="submit" VALUE="$preview_button">
</center>
</form>
Here is what I am trying to do. I have a preview message button. I would like to set it up that when they click on the submit button, it pops up a little window that asks if they supplied the information needed? When they click ok, it closes the little window and proceeds or they can click no and it closes the little window and lets them enter the info. The code I am working with is below.
I'm not sure where to start.
<FORM METHOD="post" ACTION="$databoard_url">
<INPUT TYPE="hidden" NAME="forum_name" VALUE="$forum_name">
<INPUT TYPE="hidden" NAME="pid" VALUE="$form_data{'pid'}">
<INPUT NAME="form_action" TYPE="hidden" VALUE="$form_data{'form_action'}">
<INPUT NAME="name" TYPE="hidden" VALUE="$form_data{'name'}">
<INPUT NAME="email" TYPE="hidden" VALUE="$form_data{'email'}">
<INPUT NAME="subject" TYPE="hidden" VALUE="$form_data{'subject'}">
<INPUT NAME="body" TYPE="hidden" VALUE="$body_text">
<INPUT NAME="notify_me" TYPE="hidden" VALUE="$form_data{'notify_me'}">
<INPUT NAME="post_type" TYPE="hidden" VALUE="$form_data{'post_type'}">
<INPUT NAME="link_url" TYPE="hidden" VALUE="$form_data{'link_url'}">
<INPUT NAME="link_title" TYPE="hidden" VALUE="$form_data{'link_title'}">
<INPUT NAME="image_url" TYPE="hidden" VALUE="$form_data{'image_url'}">
<INPUT NAME="parent" TYPE="hidden" VALUE="$form_data{'parent'}">
<INPUT NAME="children" TYPE="hidden" VALUE="$form_data{'children'}">
<br><br>
<center>
<INPUT TYPE="submit" VALUE="$preview_button">
</center>
</form>